22declare(strict_types=1);
24namespace pocketmine\crafting\json;
57 public array $unlockingIngredients = [];
75 $this->shape = $shape;
76 $this->input = $input;
77 $this->output = $output;
78 $this->unlockingIngredients = $unlockingIngredients;
85 $result = (array) $this;
86 if(count($this->unlockingIngredients) === 0){
87 unset($result[
"unlockingIngredients"]);
__construct(array $shape, array $input, array $output, string $block, int $priority, array $unlockingIngredients=[])