writeToBase64

public static Array<byte> writeToBase64(NBTCompound data)

Serialize, gzip, and base64-encode the provided NBT data (in that order)

See also

Throws

If the NBT data could not be serialized


public static Array<byte> writeToBase64(NBTCompound data, boolean useCompression)

Serialize and base64-encode the provided NBT data

If control over the root tag's name is needed, use writeToBase64 instead.

Return

Base64-encoded NBT data

See also

Parameters

data

NBT compound to convert

useCompression

If true, the NBT data is gzipped before being encoded as base64

Throws

If the NBT data could not be serialized


public static Array<byte> writeToBase64(    NBTCompound data,     String rootCompoundName,     boolean useCompression)

Serialize and base64-encode the provided NBT data

If the root compound's name doesn't matter, use writeToBase64 instead.

Return

Base64-encoded NBT data

See also

Parameters

data

NBT compound to convert

rootCompoundName

The name of the NBT compound that holds all other NBT data

useCompression

If true, the NBT data is gzipped before being encoded as base64

Throws

If the NBT data could not be serialized