类 ItemComponentBeforeDurabilityDamageEvent实验性

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

属性

attackingEntity: Entity

The attacking entity.

durabilityDamage: number

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

hitEntity: Entity

The entity being hit.

itemStack?: ItemStack

The item stack used to hit the entity.