Macros§
Structs§
- Array
Enum Property - An enum block property, the difference with
EnumPropertyis that it uses a const generic to store values directly inside the structure. - Block
- A basic block defined by a name, its states and properties. This block structure is made especially for static definition, its states are computed lazily and almost all method requires a self reference with static lifetime.
- Block
Map - A map structure that maps blocks (defined statically) to a value.
- Block
Set - A set structure that store blocks.
- Block
State - Represent a particular state of a block, this block state also know all its neighbors by their properties and values.
- Block
Static Map - Block
Static Set - Bool
Property - A boolean block property.
- Enum
Property - An enum block property, this property use an external statically defined array of values.
- Global
Blocks - This is a global blocks palette, it is used in chunk storage to store block states.
It allows you to register individual blocks in it as well as static blocks arrays
defined using the macro
blocks!. - IntProperty
- An unsigned 8-bits integer block property.
- Range
Property - An unsigned 8-bits integer block property with offset for first value.
Enums§
- Block
Spec - Made for static definitions of all properties of a block.
Constants§
- MAX_
STATES_ COUNT - The maximum number of states for a single block.
Traits§
- Property
- Trait for all properties stored in a block state.
- Property
Serializable - All valid property values types must implement this trait.
- Untyped
Property - An untyped property trait used for storage in shared property.
Type Aliases§
- Block
Key - The type of hashable value that can represent a block as a map key.
See
Block::get_key, its only usable for statically defined blocks. - Block
State Key