Expand description
Data component registry and storage types.
This module provides:
DataComponentRegistry- Registry of all component types with their serialization functionsDataComponentMap- Storage for component values on items/entitiesDataComponentPatch- Diff representation for network/storageDataComponentType- Type-safe handle for accessing components
Structs§
- Component
Entry - Metadata for a registered component type.
- Data
Component Map - Storage for component values.
- Data
Component Patch - A patch representing modifications to a
DataComponentMap. - Data
Component Registry - Registry of all data component types.
- Data
Component Type - A typed handle for a data component.
Enums§
- Component
Patch Entry - Entry in a component patch.
Functions§
- component_
try_ into - Attempts to extract a typed component from
ComponentData.
Type Aliases§
- Component
Entry Ref - NbtReader
- Reader function for deserializing a component from NBT format.
- NbtWriter
- Writer function for serializing a component to NBT format.
- Network
Reader - Reader function for deserializing a component from network format.
- Network
Writer - Writer function for serializing a component to network format.