Crate nbt

Crate nbt 

Source
Expand description

§chunkedge_nbt

A library for encoding and decoding Minecraft’s Named Binary Tag (NBT) format.

§Features

  • binary: Serialize and deserialize in Java edition’s binary format.
  • snbt: Serialize and deserialize in “stringified” format.
  • preserve_order: Preserve the order of fields in Compounds during insertion and deletion. The iterators on Compound then implement DoubleEndedIterator.
  • serde: Adds support for serde.
  • java_string: Adds support for Java-compatible strings via the java_string crate.
  • chunkedge_ident: Adds compatibility with the chunkedge_ident crate.

Modules§

binary
Support for serializing and deserializing compounds in Java edition’s binary format.
compound
conv
Zero-cost conversion functions for chunkedge_nbt.
list
serde
snbt
value

Macros§

compound
A convenience macro for constructing Compounds.
jcompound
A convenience macro for constructing Compound<JavaString>s

Structs§

Compound
A map type with String keys and Value values.
Error
Errors that can occur when encoding or decoding binary NBT.

Enums§

List
An NBT list value.
Tag
One of the possible NBT data types.
Value
Represents an arbitrary NBT value.

Functions§

from_binary
Decodes uncompressed NBT binary data from the provided slice.
from_network_binary
Decodes uncompressed network NBT binary data from the provided slice, Network NBT omits the root compound.
to_binary
Encodes uncompressed NBT binary data to the provided writer.
to_network_binary
Encodes uncompressed network NBT binary data to the provided writer. Network NBT omits the root compound.

Type Aliases§

Result