Skip to content

API reference Obsidian.API.Blocks

BlockUseContext class

A player using a block.

public sealed class BlockUseContext

In Obsidian.API.

Constructors

public BlockUseContext();

Properties

Block

public required IBlock Block { get; init; }

The block's state.

ClickedAt

public VectorD ClickedAt { get; init; }

The use packet's hit location relative to the block's lowest corner.

Face

public required BlockFace Face { get; init; }

The face of the block the player aimed at.

public required InteractionHand Hand { get; init; }public required IPlayer Player { get; init; }public required Vector Position { get; init; }

On this page