BedrioxDOCUMENTATION
API CLASS

PlayerEquipmentChangeEvent

Cancellable, adjustable equipment transition emitted before authoritative commit.

Bedriox\Api\Event\Player\PlayerEquipmentChangeEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Inventory\EquipmentSlot $slot, ?Bedriox\Api\Inventory\ItemStack $previous, ?Bedriox\Api\Inventory\ItemStack $item)

Typed public method.

item(): ?Bedriox\Api\Inventory\ItemStack

Typed public method.

setItem(?Bedriox\Api\Inventory\ItemStack $item): void

Typed public method.

View exact source ↗