MCPcopy Create free account
hub / github.com/boxbeam/RedLib / toString

Method toString

src/redempt/redlib/itemutils/ItemUtils.java:630–632  ·  view source on GitHub ↗

Converts an ItemStack to a JSON string @param item The ItemStack to convert to a string @return A JSON string representing the given item

(ItemStack item)

Source from the content-addressed store, hash-verified

628 * @return A JSON string representing the given item
629 */
630 public static String toString(ItemStack item) {
631 return item == null ? null : ItemSerializer.toJSON(item, ItemStack.class).toString();
632 }
633
634 /**
635 * Constructs an ItemStack from a previously-serialized JSON string

Callers

nothing calls this directly

Calls 2

toJSONMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected