*/ public array $shape; /** * @required * @var RecipeIngredientData[] * @phpstan-var array */ public array $input; /** * @required * @var ItemStackData[] * @phpstan-var list */ public array $output; /** @required */ public string $block; /** @required */ public int $priority; /** * TODO: convert this to use promoted properties - avoiding them for now since it would break JsonMapper * * @param string[] $shape * @param RecipeIngredientData[] $input * @param ItemStackData[] $output * * @phpstan-param list $shape * @phpstan-param array $input * @phpstan-param list $output */ public function __construct(array $shape, array $input, array $output, string $block, int $priority){ $this->block = $block; $this->priority = $priority; $this->shape = $shape; $this->input = $input; $this->output = $output; } }