readList

public static NBTList readList(String snbt)

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

Return

The parsed NBT list

Parameters

snbt

The text to parse into NBT

Throws

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


public static NBTList readList(    String snbt,     boolean internNames,     boolean internValues)

Same as readList, 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