Skip to content

API reference Obsidian.API.World.Structures

CustomStructurePiece class

A piece of a CustomStructure: an area of blocks, placed by each chunk it reaches as that chunk is decorated.

public abstract class CustomStructurePiece

In Obsidian.API.

Constructors

CustomStructurePiece(BlockArea)

protected CustomStructurePiece(BlockArea bounds);

A piece of a CustomStructure: an area of blocks, placed by each chunk it reaches as that chunk is decorated.

Parameters

bounds
The blocks the piece may place, which decide the chunks that place it.

Properties

Bounds

public BlockArea Bounds { get; }

The blocks the piece may place.

Methods

Place(CustomPieceContext)

public abstract void Place(CustomPieceContext context);

Places the part of the piece in CustomPieceContext.Box. The context's CustomPieceContext.Origin is the piece's lowest corner, unrotated.

On this page