13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol\types\entity;
20use pocketmine\network\mcpe\protocol\types\GetTypeIdFromConstTrait;
23 use GetTypeIdFromConstTrait;
25 public const ID = EntityMetadataTypes::COMPOUND_TAG;
34 $this->value = clone $value;
41 return clone $this->value;
45 return $other instanceof self and $other->value->getRoot()->equals($this->value->getRoot());
52 return new self(new
CacheableNbt($in->getNbtCompoundRoot()));
56 $out->put($this->value->getEncodedNbt());