Skip to main content

Module shapes

Module shapes 

Structs§

BlockShapes
Shape data for a block state.
OffsetVoxelShape
A voxel shape plus the block-local offset from vanilla BlockState.getOffset(pos).
ShapeId
An ID referencing a registered VoxelShape in the ShapeRegistry.
ShapeOffsetFlags
Records which extracted shape channels already include BlockState.getOffset(pos).
ShapeRegistry
Registry for VoxelShapes.
VoxelShape
A block-local voxel shape.

Enums§

BooleanOp
Vanilla shape boolean operation.
ShapeChannel
Shape channel names used by vanilla block-state shape queries.
SupportType
Support type for is_face_sturdy checks.

Functions§

bounding_box
Returns the overall bounding box of a voxel shape (union of all AABBs).
face_rectangles_cover
is_block_local_face_sturdy
Checks whether an owned union of block-local boxes is sturdy on a face.
is_face_center_supported
Checks if a shape provides center support on a face.
is_face_full
Checks if a shape fully covers a face (for SupportType::Full).
is_face_rigid_supported
Checks if a shape provides rigid support on a face.
is_face_sturdy
Checks if a shape is sturdy on a face for the given support type.
is_offset_face_center_supported
is_offset_face_full
is_offset_face_rigid_supported
is_offset_face_sturdy
is_offset_shape_full_block
is_shape_full_block
Checks if a shape is a full block (covers the entire 0-1 cube).
join_is_not_empty
Returns true if applying op to two voxel shapes produces any filled space.
join_unoptimized_boxes
Materializes the unoptimized cell boxes produced by a shape boolean operation.
offset_face_rectangles_cover