write To Base64
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)
Content copied to clipboard
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
use Compression
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)
Content copied to clipboard
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
root Compound Name
The name of the NBT compound that holds all other NBT data
use Compression
If true, the NBT data is gzipped before being encoded as base64
Throws
If the NBT data could not be serialized