NBT

Documentation for NBT.

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
NBT.readMethod
read(io)

Read NBT data from an IO and return the data as Julia objects.

source
NBT.readMethod
read(filename)

Read an NBT file and return the data as Julia objects.

source
NBT.writeMethod
write(io)

Write NBT data to an IO and return the number of bytes written.

source
NBT.writeMethod
write(filename)

Write an NBT file and return the number of bytes written.

source