25 use GetTypeIdFromConstTrait;
27 public const ID = EntityMetadataTypes::COMPOUND_TAG;
36 $this->value = clone $value;
43 return clone $this->value;
47 return $other instanceof self and $other->value->getRoot()->equals($this->value->getRoot());
53 public static function read(ByteBufferReader $in) : self{
57 public function write(ByteBufferWriter $out) : void{
58 $out->writeByteArray($this->value->getEncodedNbt());