类 ItemUseBeforeEvent实验性

Contains information related to an item being used.

层级 (查看完整内容)

属性

cancel: boolean

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

itemStack: ItemStack

The impacted item stack that is being used.

source: Player

Returns the source entity that triggered this item event.