Skip to content

API reference Obsidian.API.Blocks

ShapeUpdateContext class

A block whose neighbour changed shape (see IBlockBehavior.UpdateShape).

public sealed class ShapeUpdateContext : BlockContext

In Obsidian.API.

Constructors

public ShapeUpdateContext();

Properties

Direction

public required BlockFace Direction { get; init; }

The side of the block the neighbour is on.

public required Vector NeighborPosition { get; init; }

NeighborState

public required IBlock NeighborState { get; init; }

The neighbour's new state.

On this page