Skip to main content

Module blocks

Module blocks 

Source

Modulesยง

behavior
Block configuration and static properties.
block_state_ext
properties
shapes

Macrosยง

offset
Re-export for easier access Macro to generate offset calculation from property values in all positions.

Structsยง

Block
BlockLightProperties
BlockRegistry
BlockStateTickingMetadata
Immutable ticking metadata flattened by global block-state ID during registration.
StateBooleanData
StateBooleanOverwrite
StateFluidData
StateFluidOverwrite
StateProperties ๐Ÿ”’

Functionsยง

empty_shape ๐Ÿ”’
Default interaction shape function that returns an empty shape.
full_block_shape ๐Ÿ”’
Default shape function that returns a full block.
opaque_full_block_light_properties ๐Ÿ”’

Type Aliasesยง

BlockRef
LightPropertiesFn
Function type for light-property lookups. Takes a state offset and returns extracted vanilla properties.
ShapeFn
Function type for shape lookups. Takes a state offset and returns the shape.