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)
| 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 |