27 use GetTypeIdFromConstTrait;
29 public const ID = ItemStackRequestActionType::CRAFTING_RESULTS_DEPRECATED_ASK_TY_LAING;
35 private array $results,
36 private int $iterations
40 public function getResults() : array{ return $this->results; }
42 public function getIterations() : int{ return $this->iterations; }
50 return new self($results, $iterations);
54 $out->putUnsignedVarInt(count($this->results));
55 foreach($this->results as $result){
56 $out->putItemStackWithoutStackId($result);
58 $out->putByte($this->iterations);