Class: ItemUseBeforeEvent
Contains information related to an item being used.
Extends
Constructors
new ItemUseBeforeEvent()
private
new ItemUseBeforeEvent():ItemUseBeforeEvent
Returns
Overrides
ItemUseAfterEvent
. constructor
Properties
cancel
cancel:
boolean
Remarks
If set to true, this will cancel the item use behavior.
itemStack
itemStack:
ItemStack
Remarks
The impacted item stack that is being used.
Inherited from
source
readonly
source:Player
Remarks
Returns the source entity that triggered this item event.