BedrioxDOCUMENTATION
API CLASS

PlayerEntityPickEvent

Cancellable creative entity-pick intent emitted before authoritative inventory mutation.

Bedriox\Api\Event\Player\PlayerEntityPickEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Entity\Entity $entity, Bedriox\Api\Inventory\ItemStack $item, int $hotbarSlot, bool $userDataRequested)

Typed public method.

item(): Bedriox\Api\Inventory\ItemStack

Typed public method.

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

Typed public method.

View exact source ↗