Class BeforeItemUseOnEventBeta

Contains information related to an item being used on a block.

Hierarchy

  • BeforeItemUseOnEvent

Constructors

Properties

blockFace: Direction

The face of the block that an item is being used on.

blockLocation: BlockLocation

Location of the block being impacted.

cancel: boolean

If set to true, this will cancel the item use behavior.

faceLocationX: number

X coordinate of the item-use impact location on the face of the target block.

faceLocationY: number

Y coordinate of the item-use impact location on the face of the target block.

item: ItemStack

The impacted item stack that is being used on a block.

source: Entity

Returns the source entity that triggered this item event.