@minecraft
    正在准备搜索索引...

    类 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.