24    use GetTypeIdFromConstTrait;
 
   26    public const ID = EntityMetadataTypes::POS;
 
   28    public function __construct(
 
   36    public static function read(ByteBufferReader $in) : 
self{
 
   37        return new self(CommonTypes::getSignedBlockPosition($in));
 
   40    public function write(ByteBufferWriter $out) : 
void{
 
   41        CommonTypes::putSignedBlockPosition($out, $this->value);
 
   45        return $other instanceof 
self and $other->value->equals($this->value);