read

public static NBTCompound read(InputStream inputStream)

Read NBT data from an InputStream

Return

The parsed compound

Parameters

inputStream

An InputStream containing valid NBT data (may be gzipped)

Throws

If the data could not be read properly


public static NBTCompound read(    InputStream inputStream,     boolean internNames,     boolean internValues)

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