readCompound

public static NBTCompound readCompound(String snbt)

Read an NBT compound from an SNBT (stringified NBT) string.

Return

The parsed NBT compound

Parameters

snbt

The text to parse into NBT

Throws

If the input string cannot be read or is not a valid SNBT compound


public static NBTCompound readCompound(    String snbt,     boolean internNames,     boolean internValues)

Same as readCompound, but with additional control over the interning of tag names and values

See also

Parameters

internNames

Whether or not tag names inside of compounds will be interned

internValues

Whether or not STRING values inside compounds and lists will be interned