24    use GetTypeIdFromConstTrait;
 
   26    public const ID = EntityMetadataTypes::VECTOR3F;
 
   30    public function __construct(
Vector3 $value){
 
   31        $this->value = $value->asVector3();
 
   34    public function getValue() : 
Vector3{
 
   35        return clone $this->value;
 
   38    public static function read(ByteBufferReader $in) : 
self{
 
   39        return new self(CommonTypes::getVector3($in));
 
   42    public function write(ByteBufferWriter $out) : 
void{
 
   43        CommonTypes::putVector3($out, $this->value);
 
   47        return $other instanceof 
self and $other->value->equals($this->value);