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

Hierarchy (View Summary)

Properties

block: Block

The block that the item is used on.

blockFace: Direction

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

cancel: boolean

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

faceLocation: Vector3

Location relative to the bottom north-west corner of the block where the item is placed.

itemStack: ItemStack

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

source: Player

Returns the source entity that triggered this item event.