跳到主要内容

Class: ItemUseAfterEvent

Contains information related to an item being used on a block. This event fires when an item used by a player successfully triggers an entity interaction.

Extended by

Constructors

new ItemUseAfterEvent()

private new ItemUseAfterEvent(): ItemUseAfterEvent

Returns

ItemUseAfterEvent

Properties

itemStack

itemStack: ItemStack

Remarks

The impacted item stack that is being used.


source

readonly source: Player

Remarks

Returns the source entity that triggered this item event.