24 use GetTypeIdFromConstTrait;
26 public const ID = ItemStackRequestActionType::CRAFTING_GRINDSTONE;
28 public function __construct(
29 private int $recipeId,
30 private int $repairCost,
31 private int $repetitions
34 public function getRecipeId() :
int{
return $this->recipeId; }
39 public function getRepetitions() : int{ return $this->repetitions; }
42 $recipeId = $in->readRecipeNetId();
46 return new self($recipeId, $repairCost, $repetitions);
50 $out->writeRecipeNetId($this->recipeId);
52 $out->putByte($this->repetitions);