BedrioxDOCUMENTATION
API CLASS

PlayerCraftItemEvent

Cancellable craft intent emitted after authoritative validation and before inventory mutation.

Bedriox\Api\Event\Player\PlayerCraftItemEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Crafting\CraftingRecipe $recipe, Bedriox\Api\Crafting\CraftingGrid $grid, int $craftCount, array $consumedInputs, array $outputs, array $remainders = [])

Typed public method.

outputs(): array

Typed public method.

setOutputs(array $outputs): void

Replaces one-repetition outputs without increasing the validated stack or item-count budget. The authoritative simulation revalidates item admission and inventory capacity after dispatch.

View exact source ↗