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

Method fromString

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

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)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

parseMapMethod · 0.95
recursiveDeserializeMethod · 0.95

Tested by

no test coverage detected