NBT
Documentation for NBT.
NBT.TagListNBT.begin_compoundNBT.begin_compoundNBT.begin_listNBT.begin_listNBT.begin_nbt_fileNBT.end_compoundNBT.end_nbt_fileNBT.readNBT.readNBT.read_uncompressedNBT.writeNBT.writeNBT.write_tagNBT.write_tagNBT.write_uncompressed
NBT.TagList — Type
struct TagList{T}Represents an NBT list tag, containing an array of T. See minecraft wiki.
Properties
data::Vector{T}: The data in the tag.
NBT.begin_compound — Method
begin_compound(io, name)Begin an NBT Compound tag and return the number of bytes written. Use only for the root tag (with an empty name) or between begin_compound and end_compound.
NBT.begin_compound — Method
begin_compound(io)Begin an NBT Compound tag and return the number of bytes written. Use only after begin_list.
Note: This method just returns 0, but is included for completeness and to allow for more readable code.
NBT.begin_list — Method
begin_list(io, length, type)Begin an NBT List tag with the specified length and element type and return the number of bytes written. Use only after begin_list.
NBT.begin_list — Method
begin_list(io, name, length, type)Begin an NBT List tag with the specified length and element type and return the number of bytes written. Use only between begin_compound and end_compound.
NBT.begin_nbt_file — Method
begin_nbt_file(io)Begin an NBT file and return a stream and the number of bytes written.
NBT.end_compound — Method
end_compound(io)End the current NBT Compound tag and return the number of bytes written.
NBT.end_nbt_file — Method
end_nbt_file(io)End an NBT file and return the number of bytes written.
NBT.read_uncompressed — Method
read_uncompressed(io, ::Type{Tag})Reads an nbt tag from an uncompressed IO. Not exported.
NBT.write_tag — Method
write_tag(io, data)Write the data tag and return the number of bytes written. Use only after begin_list.
NBT.write_tag — Method
write_tag(io, name => data)Write the name => data pair and return the number of bytes written. Use only between begin_compound and end_compound.
NBT.write_uncompressed — Method
write_uncompressed(io, tag)Writes an nbt tag to an uncompressed IO. Not exported.