Contains information regarding an item before it is damaged from hitting an entity.

Hierarchy

  • ItemComponentBeforeDurabilityDamageEvent

Constructors

Properties

attackingEntity: Entity

Remarks

The attacking entity.

durabilityDamage: number

Remarks

The damage applied to the item's durability when the event occurs.

hitEntity: Entity

Remarks

The entity being hit.

itemStack?: ItemStack

Remarks

The item stack used to hit the entity.