BedrioxDOCUMENTATION
API CLASS

PlayerItemDamageEvent

Cancellable, adjustable durability loss emitted before authoritative commit.

Bedriox\Api\Event\Player\PlayerItemDamageEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Inventory\ItemStack $item, Bedriox\Api\Inventory\ItemDamageCause $cause, Bedriox\Api\Inventory\EquipmentSlot $slot, int $damage)

Typed public method.

damage(): int

Typed public method.

setDamage(int $damage): void

Typed public method.

View exact source ↗