50 public function __construct(array $ingredients, array $results, ShapelessRecipeType $type){
53 if(count($ingredients) > 9){
54 throw new \InvalidArgumentException(
"Shapeless recipes cannot have more than 9 ingredients");
56 Utils::validateArrayValueType($ingredients,
function(
RecipeIngredient $_) :
void{});
57 $this->ingredients = $ingredients;
58 Utils::validateArrayValueType($results,
function(
Item $_) :
void{});
59 $this->results = Utils::cloneObjectArray($results);