API reference Obsidian.API.Inventory
ItemUseOnBlockContext class
A player using an item on a block.
public sealed class ItemUseOnBlockContext : ItemUseContext
In Obsidian.API.
Constructors
public ItemUseOnBlockContext();Properties
public required IBlock Block { get; init; }ClickedAt
public VectorD ClickedAt { get; init; }Where the player's aim hit the block, relative to its lowest corner: for a block of several parts, which one the item was used on.
public required BlockFace Face { get; init; }public required Vector Position { get; init; }