Skip to content

API reference Obsidian.API.Blocks

BlockContext class

A block a hook of IBlockBehavior runs for: where it is and its state.

public class BlockContext

In Obsidian.API.

Constructors

public BlockContext();

Properties

Level

public required IBlockLevel Level { get; init; }

The level, for reading and changing blocks during the hook.

public required Vector Position { get; init; }

State

public required IBlock State { get; init; }

The block's state.

On this page