BedrioxDOCUMENTATION
API CLASS

PlayerItemUseEvent

Cancellable intent emitted after validation and before an item use begins or applies.

Bedriox\Api\Event\Player\PlayerItemUseEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Inventory\ItemStack $item, Bedriox\Api\Inventory\ItemUseKind $kind, Bedriox\Api\Inventory\EquipmentSlot $hand, int $requiredTicks)

Typed public method.

View exact source ↗