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\ConsumptionResultTyped public method.
setResult(Bedriox\Api\Inventory\ConsumptionResult $result): voidTyped public method.
