22 public function __construct(
24 private string $recipeId,
29 private string $blockName,
30 private int $recipeNetId
32 parent::__construct($typeId);
35 public function getRecipeId() :
string{
return $this->recipeId; }
43 public function getOutput() :
ItemStack{
return $this->output; }
45 public function getBlockName() :
string{
return $this->blockName; }
47 public function getRecipeNetId() :
int{
return $this->recipeNetId; }
51 $template = $in->getRecipeIngredient();
52 $input = $in->getRecipeIngredient();
53 $addition = $in->getRecipeIngredient();
56 $recipeNetId = $in->readRecipeNetId();
71 $out->putString($this->recipeId);
72 $out->putRecipeIngredient($this->
template);
73 $out->putRecipeIngredient($this->input);
74 $out->putRecipeIngredient($this->addition);
75 $out->putItemStackWithoutStackId($this->output);
76 $out->putString($this->blockName);
77 $out->writeRecipeNetId($this->recipeNetId);