Skip to main content

Class: ItemComponentBeforeDurabilityDamageEvent

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

Constructors

new ItemComponentBeforeDurabilityDamageEvent()

private new ItemComponentBeforeDurabilityDamageEvent(): ItemComponentBeforeDurabilityDamageEvent

Returns

ItemComponentBeforeDurabilityDamageEvent

Properties

attackingEntity

readonly attackingEntity: Entity

Remarks

The attacking entity.


durabilityDamage

durabilityDamage: number

Remarks

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


hitEntity

readonly hitEntity: Entity

Remarks

The entity being hit.


itemStack?

optional itemStack: ItemStack

Remarks

The item stack used to hit the entity.