Expand description
Vanilla-compatible NBT helpers. Vanilla-compatible NBT helpers.
Modules§
Structs§
- NbtPath
- Parsed vanilla NBT path.
- NbtPath
Error - Error returned when parsing an NBT path.
- Snbt
Error - Error returned when parsing SNBT text.
Enums§
- NbtPath
Error Kind - Specific reason why NBT path parsing failed.
- NbtPath
Mutation Error - Error returned when mutating NBT through a path.
- Snbt
Error Kind - Specific reason why SNBT parsing failed.
- Snbt
Number Type - NBT integer type requested by an SNBT number suffix or array.
Traits§
- NbtNumeric
- Decodes numeric NBT tags with the conversions performed by vanilla’s
DynamicOpsnumber codecs.
Functions§
- compare_
lists_ 🔒partially - compare_
nbt - Mirrors vanilla
NbtUtils.compareNbt. - compare_
nbt_ compounds - Compares two compounds with vanilla’s partial compound semantics.
- double_
tags_ 🔒equal - float_
tags_ 🔒equal - merge_
nbt_ compounds - Recursively applies Vanilla
CompoundTag.mergesemantics. - nbt_
collection_ values - Returns values exposed by Vanilla’s
NbtOpscollection interface. - nbt_
compounds_ equal - Compares compounds as Vanilla maps, independent of serialized entry order.
- nbt_
list_ values - Returns the semantic values of a Vanilla list.
- nbt_
tags_ equal - Compares NBT values with Vanilla’s
Tag.equalssemantics. - normalize_
nbt_ compound - Converts an NBT compound to Vanilla’s map representation.
- normalize_
nbt_ 🔒list - normalize_
nbt_ tag - Converts an NBT value and all descendants to Vanilla’s canonical in-memory representation.
- parse_
nbt_ path - Parses one complete NBT path.
- parse_
nbt_ path_ argument - Parses one NBT path and returns the byte cursor consumed by it.
- parse_
snbt - Parses one complete SNBT tag.
- parse_
snbt_ argument - Parses one SNBT tag and returns the byte cursor consumed by that tag.
- parse_
snbt_ compound - Parses one complete SNBT compound.
- parse_
snbt_ compound_ argument - Parses one SNBT compound and returns the byte cursor consumed by it.
- sized_
array 🔒 - sized_
string 🔒 - to_
canonical_ snbt - Renders an NBT value with Vanilla
Tag::toStringsemantics. - unwrap_
list_ 🔒wrapper - vanilla_
nbt_ 🔒compound_ heap_ size - vanilla_
nbt_ heap_ size - Returns the heap usage charged by Vanilla’s
NbtAccounterwhile decoding. - vanilla_
nbt_ 🔒list_ heap_ size