23    public function __construct(
 
   25        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 getBlockName() : 
string{ 
return $this->blockName; }
 
   45    public function getRecipeNetId() : 
int{ 
return $this->recipeNetId; }
 
   47    public static function decode(
int $typeId, ByteBufferReader $in) : 
self{
 
   48        $recipeId = CommonTypes::getString($in);
 
   49        $template = CommonTypes::getRecipeIngredient($in);
 
   50        $input = CommonTypes::getRecipeIngredient($in);
 
   51        $addition = CommonTypes::getRecipeIngredient($in);
 
   52        $blockName = CommonTypes::getString($in);
 
   53        $recipeNetId = CommonTypes::readRecipeNetId($in);
 
   66    public function encode(ByteBufferWriter $out) : 
void{
 
   67        CommonTypes::putString($out, $this->recipeId);
 
   68        CommonTypes::putRecipeIngredient($out, $this->
template);
 
   69        CommonTypes::putRecipeIngredient($out, $this->input);
 
   70        CommonTypes::putRecipeIngredient($out, $this->addition);
 
   71        CommonTypes::putString($out, $this->blockName);
 
   72        CommonTypes::writeRecipeNetId($out, $this->recipeNetId);