Class ItemUseOnAfterEventBeta

Contains information related to an item being used on a block. This event fires when an item is used on a block by a player.

Hierarchy

Constructors

Properties

block: Block

Remarks

The block that the item is used on.

blockFace: Direction

Remarks

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

faceLocation: Vector3

Remarks

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

itemStack: ItemStack

Remarks

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

source: Entity

Remarks

Returns the source entity that triggered this item event.