Structsยง
- Block
Shapes - Shape data for a block state.
- Face
Rect ๐ - 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.
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ยง
- axis_
offset ๐ - block_
local_ ๐face_ rectangles_ cover - bounding_
box - Returns the overall bounding box of a voxel shape (union of all AABBs).
- face_
rect_ ๐for_ aabb - face_
rectangles_ cover - face_
rects_ ๐cover_ target - 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 - offset_
shape_ ๐fills_ cell - shape_
edges ๐ - shape_
fills_ ๐cell - sort_
and_ ๐dedup_ edges - sort_
and_ ๐dedup_ voxel_ edges
Type Aliasesยง
- Edge
List ๐ - Face
Rect ๐List