23 use GetTypeIdFromConstTrait;
25 public const ID = ItemDescriptorType::TAG;
27 public function __construct(
31 public function getTag() :
string{
return $this->tag; }
33 public static function read(ByteBufferReader $in) :
self{
34 $tag = CommonTypes::getString($in);
36 return new self($tag);
39 public function write(ByteBufferWriter $out) :
void{
40 CommonTypes::putString($out, $this->tag);