Structsยง
- Block
Shapes - Shape data for a block state.
- Face
Rect ๐ - ShapeId
- An ID referencing a registered VoxelShape in the ShapeRegistry.
- Shape
Registry - Registry for VoxelShapes.
- Voxel
Shape - A block-local voxel shape.
Enumsยง
- Boolean
Op - Vanilla shape boolean operation.
- Support
Type - Support type for
is_face_sturdychecks.
Constantsยง
- CENTER_
SUPPORT_ ๐MAX - CENTER_
SUPPORT_ ๐MIN - Vanilla
SupportType.CENTER:Block.column(2.0, 0.0, 10.0). - CENTER_
SUPPORT_ ๐Y_ MAX - FACE_
EPSILON ๐ - FULL_
BLOCK_ ๐BOXES - RIGID_
BORDER ๐ - Vanilla
SupportType.RIGID:Shapes.block() ONLY_FIRST Block.column(12.0, 0.0, 16.0). - VOXEL_
EPSILON ๐
Functionsยง
- bounding_
box - Returns the overall bounding box of a voxel shape (union of all AABBs).
- face_
rect_ ๐for_ aabb - face_
rectangles_ ๐cover - 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_
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.
- shape_
edges ๐ - shape_
fills_ ๐cell - sort_
and_ ๐dedup_ edges - sort_
and_ ๐dedup_ voxel_ edges