Module shapes
Structs§
- Block
Shapes - Shape data for a block state.
- Offset
Voxel Shape - A voxel shape plus the block-local offset from vanilla
BlockState.getOffset(pos). - ShapeId
- An ID referencing a registered
VoxelShapein theShapeRegistry. - Shape
Offset Flags - Records which extracted shape channels already include
BlockState.getOffset(pos). - Shape
Registry - Registry for
VoxelShapes. - Voxel
Shape - A block-local voxel shape.
Enums§
- Boolean
Op - Vanilla shape boolean operation.
- Shape
Channel - Shape channel names used by vanilla block-state shape queries.
- Support
Type - Support type for
is_face_sturdychecks.
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
opto 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