24 use GetTypeIdFromConstTrait;
26 public const ID = ItemStackRequestActionType::CRAFTING_LOOM;
28 public function __construct(
29 private string $patternId,
30 private int $repetitions = 1
33 public function getPatternId() :
string{
return $this->patternId; }
35 public function getRepetitions() :
int{
return $this->repetitions; }
40 return new self($patternId, $repetitions);
44 $out->putString($this->patternId);
45 $out->putByte($this->repetitions);