Constructs an ItemStack from a previously-serialized JSON string @param json The JSON string created using ItemUtils#toString(ItemStack) @return The deserialized ItemStack
(String json)
| 638 | * @return The deserialized ItemStack |
| 639 | */ |
| 640 | public static ItemStack fromString(String json) { |
| 641 | JSONMap map = JSONParser.parseMap(json); |
| 642 | return (ItemStack) ItemSerializer.recursiveDeserialize(map); |
| 643 | } |
| 644 | |
| 645 | } |
nothing calls this directly
no test coverage detected