Skip to content

API reference Obsidian.API.Blocks

NeighborChangedContext class

A block whose neighbour changed (see IBlockBehavior.NeighborChanged).

public sealed class NeighborChangedContext : BlockContext

In Obsidian.API.

Constructors

public NeighborChangedContext();

Properties

SourceBlock

public required IBlock SourceBlock { get; init; }

The block the change came from, like vanilla's: the state that was replaced when a neighbour changed, or the block that asked for the update.

SourcePosition

public required Vector SourcePosition { get; init; }

Where the change was.

On this page