Crate nbt

Source
Expand description

§Crates

The standard crates used in Valence projects.

All crates here are exported by the main valence crate. valence is the intended interface for both end users and third-party plugin authors.

Crates are versioned in lockstep with the exception of valence_nbt.

The output of cargo depgraph --workspace-only | tred | dot -Tsvg -o assets/depgraph.svg looks like this:

dependency graph

Modules§

binary
Support for serializing and deserializing compounds in Java edition’s binary format.
compound
conv
Zero-cost conversion functions for valence_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.
to_binary
Encodes uncompressed NBT binary data to the provided writer.

Type Aliases§

Result