Class BeforeItemDefinitionTriggeredEvent

Contains information related to a triggering of a custom item definition change.

Hierarchy

  • BeforeItemDefinitionTriggeredEvent

Constructors

Properties

Constructors

Properties

cancel: boolean

If set to true, will cancel the application of this item definition change.

eventName: string

Name of the data-driven item event that is triggering this change.

item: ItemStack

The impacted item stack that is being used.

source: Entity

Returns the source entity that triggered this item event.