NBT

Documentation for NBT.

NBT.TagCompoundType
struct TagCompound{T}

Represents an NBT compound tag, containing an array of Pairs name => data. See minecraft wiki.

Properties

  • data::Vector{Pair{String, T}}: The data in the tag.
source
NBT.TagListType
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.
source
NBT.begin_compoundMethod
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.

source
NBT.begin_listMethod
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.

source
NBT.begin_nbt_fileMethod
begin_nbt_file(io)

Begin an NBT file and return a stream and the number of bytes written.

source
NBT.end_compoundMethod
end_compound(io)

End the current NBT Compound tag and return the number of bytes written.

source