Saves this NBT file to a stream. Nothing is written to stream if RootTag is null.
is null. If AutoDetect was given as the mode. If an unrecognized/unsupported value was given for . If given stream does not support writing. If an I/O error occurred while creating the file. Specified file is read-only, or a permission issue occurred. If one of the NbtCompound tags contained unnamed tags;
/// or if an NbtList tag had Unknown list type and no elements.
publicSaveToFile ( [fileName, NbtCompressioncompression ) : long
fileName
[
File to write data to. May not be null.
compression
NbtCompression
Compression mode to use for saving. May not be AutoDetect.