50        ?
float $vehicleAngularVelocity,
 
   53        $result->position = $position;
 
   54        $result->delta = $delta;
 
   55        $result->onGround = $onGround;
 
   56        $result->tick = $tick;
 
   57        $result->predictionType = $predictionType;
 
   58        $result->vehicleRotation = $vehicleRotation;
 
   59        $result->vehicleAngularVelocity = $vehicleAngularVelocity;
 
 
   78        $this->predictionType = Byte::readUnsigned($in);
 
   79        $this->position = CommonTypes::getVector3($in);
 
   80        $this->delta = CommonTypes::getVector3($in);
 
   81        $this->vehicleRotation = 
new Vector2(LE::readFloat($in), LE::readFloat($in));
 
   82        $this->vehicleAngularVelocity = CommonTypes::readOptional($in, LE::readFloat(...));
 
   83        $this->onGround = CommonTypes::getBool($in);
 
   84        $this->tick = VarInt::readUnsignedLong($in);
 
 
   88        Byte::writeUnsigned($out, $this->predictionType);
 
   89        CommonTypes::putVector3($out, $this->position);
 
   90        CommonTypes::putVector3($out, $this->delta);
 
   91        LE::writeFloat($out, $this->vehicleRotation->getX());
 
   92        LE::writeFloat($out, $this->vehicleRotation->getY());
 
   93        CommonTypes::writeOptional($out, $this->vehicleAngularVelocity, LE::writeFloat(...));
 
   94        CommonTypes::putBool($out, $this->onGround);
 
   95        VarInt::writeUnsignedLong($out, $this->tick);