BedrioxDOCUMENTATION
API CLASS

PlayerItemConsumeEvent

Cancellable, adjustable result emitted immediately before consumption commits.

Bedriox\Api\Event\Player\PlayerItemConsumeEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Inventory\ItemStack $item, Bedriox\Api\Player\Nutrition $nutrition, Bedriox\Api\Inventory\ConsumptionResult $result)

Typed public method.

result(): Bedriox\Api\Inventory\ConsumptionResult

Typed public method.

setResult(Bedriox\Api\Inventory\ConsumptionResult $result): void

Typed public method.

View exact source ↗