dart_nbt library

The NBT library for reading and writing the so called "Named Binary Tag" file format. Minecraft world files and other storage files related to Minecraft: Java Edition are stored in this file format.

The format allows for compression with gzip or zlib. However, using dart2js will currently lead to exceptions while reading or writing as the platform does not include a implementation of the afformentioned compression algorithmns.

Classes

NbtArray<T>
The base of any array or list nbt tag. Uses the ListMixin to inherit all methods and properties of a List.
NbtByte
Represents a single byte in a NBT file.
NbtByteArray
Represents a array of single byte integers in a NBT file.
NbtCompound<T extends NbtTag>
Represents a list of named NbtTags. Unlike NbtList, this can have any type of NbtTag in its list.
NbtDouble
Represents a 8 byte double precision floating point number in a NBT file.
NbtFloat
Represents a 4 byte single precision floating point number in a NBT file.
NbtInt
Represents a 4 byte integer in a NBT file.
NbtIntArray
Represents a array of 4 byte integers in a NBT file.
NbtList<T extends NbtTag>
Represents a list of unnamed NbtTags. Can only be a single type of NbtTag, e.g. only a list of NbtInt.
NbtLong
Represents a 8 byte long integer in a NBT file.
NbtLongArray
Represents a array of 8 byte long integers in a NBT file.
NbtReader
NbtShort
Represents a 2 byte short integer in a NBT file.
NbtString
Represents a String inside a NBT File.
NbtTag
Represents the base of any NBT Tag.
NbtWriter
A byte writer used to serialize NBT data into binary files.

Enums

NbtCompression
The compression of a NbtFile. Implementation of detecting the compression can be found at NbtFileReader#detectCompression.
NbtTagType
Different tags for each Nbt Tag that exists.

Extensions

CompressionFunctionExtension on NbtCompression
NbtTagFunctions on NbtTagType
Extension on NbtTagType to give each enum value some functions.