ItemUseOnEvent Class

Caution

This class is still in pre-release. Its signature may change or it may be removed in future releases.

Classes that extend ItemUseOnEvent

Contains information regarding the use of an item on a block.

Properties

block

read-only block: Block;

The block impacted by this event.

Type: Block

blockFace

read-only blockFace: Direction;

The face of the block that the item was used on.

Type: Direction

faceLocation

read-only faceLocation: Vector3;

Location relative to the bottom north-west corner of the block that the item was used on.

Type: Vector3

itemStack

read-only itemStack: ItemStack;

The item stack used on the block.

Type: ItemStack