BedrioxDOCUMENTATION
API CLASS

PlayerFoodLevelChangeEvent

Cancellable nutrition transition emitted before authoritative state changes.

Bedriox\Api\Event\Player\PlayerFoodLevelChangeEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Player\Nutrition $previous, Bedriox\Api\Player\Nutrition $nutrition, Bedriox\Api\Player\FoodLevelChangeCause $cause)

Typed public method.

nutrition(): Bedriox\Api\Player\Nutrition

Typed public method.

setNutrition(Bedriox\Api\Player\Nutrition $nutrition): void

Typed public method.

View exact source ↗