write To File
Serialize, gzip, and write to file the provided NBT data
See also
Throws
If the NBT data could not be serialized or the file could not be written to
Serialize the provided NBT data and write it to a file
If control over the root tag's name is needed, use writeToFile instead.
See also
Parameters
NBT compound to serialize
File to write the data to
If true, the serialized data will be gzipped before being written to the file
Throws
If the NBT data could not be serialized or the file could not be written to
Serialize the provided NBT data and write it to a file
If the root compound's name doesn't matter, use writeToFile instead.
See also
Parameters
NBT compound to serialize
File to write the data to
The name of the NBT compound that holds all other NBT data
If true, the serialized data will be gzipped before being written to the file
Throws
If the NBT data could not be serialized or the file could not be written to