Skip to content

NBT

NBT tags, binary IO and SNBT.

Type Kind Description
NbtByte class Signed 8 bit integer (also the game’s boolean).
NbtByteArray class An array of bytes.
NbtCompound class A compound: named tags (keys are unique; the enumeration order is the insertion order).
NbtDouble class 64 bit float.
NbtFloat class 32 bit float.
NbtInt class Signed 32 bit integer.
NbtIntArray class An array of 32 bit integers.
NbtIo class Binary NBT (the file form of the game: type byte, name, payload; big endian; strings in Java’s modified UTF-8).
NbtList class A list of tags of one type.
NbtLong class Signed 64 bit integer.
NbtLongArray class An array of 64 bit integers.
NbtShort class Signed 16 bit integer.
NbtString class A string.
NbtTag class An NBT value (the data format of block entities, entities, item components and level data).
NbtType enum The type of an NBT tag (the id byte of the binary format).
NbtValueTag class A tag with a single numeric or text value.
Snbt class Stringified NBT (the text form of /data and /summon), through the game’s own parser and printer.