Expand description
The borrowed variant of NBT. This is useful if you’re only reading data and you can keep a reference to the original buffer.
Structs§
- BaseNbt
- A complete NBT container. This contains a name and a compound tag.
- Base
NbtCompound - A nameless NBT container. This only contains a compound tag. This contains a
TagAllocator, so it can exist independently from aBaseNbt. - Base
NbtTag - A nameless NBT tag.
- NbtCompound
- NbtCompound
Iter - NbtCompound
List - A wrapper over
NbtCompoundListIterthat acts more like a Vec. - NbtCompound
List Iter - NbtList
- A list of NBT tags of a single type.
- NbtList
List - A wrapper over
NbtListListIterthat acts more like a Vec. - NbtList
List Iter - An iterator over a list of lists.
- NbtTag
Enums§
- Nbt
- Either a complete NBT container, or nothing.
Functions§
- read
- Read a normal root NBT compound. This is either empty or has a name and compound tag.
- read_
compound - Read a compound tag. This may have any number of items.
- read_
optional_ tag - Read any NBT tag, without reading its name. This may be any type of tag, including an end tag.
- read_
tag - Read an NBT tag, without reading its name. This may be any type of tag
except for an end tag. If you need to be able to handle end tags, use
read_optional_tag. - read_
unnamed - Read a root NBT compound, but without reading the name. This is used in Minecraft when reading NBT over the network.