24 use GetTypeIdFromConstTrait;
26 public const ID = ItemStackRequestActionType::CRAFTING_RECIPE;
28 final public function __construct(
29 private int $recipeId,
30 private int $repetitions
33 public function getRecipeId() :
int{
return $this->recipeId; }
35 public function getRepetitions() :
int{
return $this->repetitions; }
38 $recipeId = $in->readRecipeNetId();
40 return new self($recipeId, $repetitions);
44 $out->writeRecipeNetId($this->recipeId);
45 $out->putByte($this->repetitions);