21 use GetTypeIdFromConstTrait;
23 public const ID = ItemDescriptorType::STRING_ID_META;
25 public function __construct(
30 throw new \InvalidArgumentException(
"Meta cannot be negative");
34 public function getId() :
string{
return $this->id; }
36 public function getMeta() :
int{
return $this->meta; }
42 return new self($stringId, $meta);
46 $out->putString($this->
id);
47 $out->putLShort($this->meta);