Skip to main content

Module codecs

Module codecs 

Source

Structsยง

ComponentCodecs ๐Ÿ”’
ComponentEntry
Metadata for a registered component type.
NetworkCodecs ๐Ÿ”’
PersistentCodecs ๐Ÿ”’

Traitsยง

ValidatePersistentComponent ๐Ÿ”’
Additional source-value validation required before persistent encoding.

Functionsยง

hash_component ๐Ÿ”’
read_typed_nbt ๐Ÿ”’
read_typed_network ๐Ÿ”’
validate_component ๐Ÿ”’
write_typed_nbt ๐Ÿ”’
write_typed_network ๐Ÿ”’

Type Aliasesยง

ComponentEntryRef
ComponentHash ๐Ÿ”’
Function for hashing a component through its persistent codec shape.
ComponentValidator ๐Ÿ”’
NbtReader
Reader function for deserializing a component from NBT format.
NbtWriter
Writer function for serializing a component to NBT format.
NetworkReader
NetworkWriter
Writer function for serializing a component to network format.
PersistentCodecFns ๐Ÿ”’