public void teleport(short var1, short var2, short var3, float var4, float var5) {
      float var6 = var4 - this.yRot;

      float var7;
      for(var7 = var5 - this.xRot; var6 >= 180.0F; var6 -= 360.0F) {
         ;
      }

      while(var6 < -180.0F) {
         var6 += 360.0F;
      }

      while(var7 >= 180.0F) {
         var7 -= 360.0F;
      }

      while(var7 < -180.0F) {
         var7 += 360.0F;
      }

      var6 = this.yRot + var6 * 0.5F;
      var7 = this.xRot + var7 * 0.5F;
      this.moveQueue.add(new PositionUpdate((float)(this.xp + var1) / 64.0F, (float)(this.yp + var2) / 64.0F, (float)(this.zp + var3) / 64.0F, var6, var7));
      this.xp = var1;
      this.yp = var2;
      this.zp = var3;
      this.moveQueue.add(new PositionUpdate((float)this.xp / 32.0F, (float)this.yp / 32.0F, (float)this.zp / 32.0F, var4, var5));
   }