API reference Obsidian.API.Blocks
BlockShapes class
Immutable collision and selection boxes, in block-local coordinates. Empty lists mean no shape; a null shape override uses the block state's usual shapes. Boxes must fit inside the block's unit cube.
public sealed class BlockShapes
In Obsidian.API.
Constructors
BlockShapes(IEnumerable<BoundingBox>, IEnumerable<BoundingBox>)
public BlockShapes(IEnumerable<BoundingBox> collision, IEnumerable<BoundingBox> outline);Copies both box lists, rejecting invalid or out-of-block bounds.
Properties
Collision
public IReadOnlyList<BoundingBox> Collision { get; }The boxes that stop entities moving through the block.
Outline
public IReadOnlyList<BoundingBox> Outline { get; }The boxes used for picking and the selection outline, in part index order.