dart_nbt
library
Classes
Nbt
A utility class for reading and writing NBT (Named Binary Tag) data.
NbtByte
TAG_Byte: A signed 8-bit integer (-128 to 127).
NbtByteArray
TAG_Byte_Array: Length-prefixed array of signed 8-bit integers (Int8List ).
NbtCompound
TAG_Compound: A map-like collection of named NBT tags.
Order is preserved for serialization but ignored for equality.
Terminated by TAG_End during serialization.
NbtDecoder
A utility class for detecting, decompressing, and compressing NBT data.
NbtDouble
TAG_Double: A 64-bit IEEE 754 floating-point number.
NbtEnd
TAG_End: Marks end of NbtCompound or empty NbtList type. No name/payload.
NbtFloat
TAG_Float: A 32-bit IEEE 754 floating-point number.
NbtInt
TAG_Int: A signed 32-bit integer.
NbtIntArray
TAG_Int_Array: Length-prefixed array of signed 32-bit integers (Int32List ).
NbtList <E extends NbtTag >
TAG_List: A list of NBT tags of a single elementType .
Tags in list are unnamed. Empty list has elementType TAG_End.
NbtLong
TAG_Long: A signed 64-bit integer, using BigInt .
NbtLongArray
TAG_Long_Array: Length-prefixed array of signed 64-bit integers (BigInt list).
NbtShort
TAG_Short: A signed 16-bit integer (-32768 to 32767).
NbtString
TAG_String: UTF-8 string, prefixed by its length in bytes (unsigned 16-bit).
NbtTag <T >
Abstract base for NBT tags.
Each tag has an optional name , a value of type T
, and an NbtTagType .
Enums
NbtCompression
Represents the different compression formats that NBT data can use.
NbtTagType
NBT (Named Binary Tag) tag types.