BedrioxDOCUMENTATION
API CLASS

PlayerFishEvent

Cancellable authoritative fishing transition; a catch may replace its bounded item and experience result.

Bedriox\Api\Event\Player\PlayerFishEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, int $hookRuntimeEntityId, Bedriox\Api\Event\Player\PlayerFishState $state, ?Bedriox\Api\Inventory\ItemStack $caughtItem = null, int $experience = 0)

Typed public method.

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

Typed public method.

setCaughtItem(?Bedriox\Api\Inventory\ItemStack $caughtItem): void

Typed public method.

experience(): int

Typed public method.

setExperience(int $experience): void

Typed public method.

View exact source ↗