public void func_72498_a(Packet10Flying p_72498_1_) { EntityClientPlayerMP var2 = this.field_72563_h.field_71439_g; double var3 = var2.field_70165_t; double var5 = var2.field_70163_u; double var7 = var2.field_70161_v; float var9 = var2.field_70177_z; float var10 = var2.field_70125_A; if(p_72498_1_.field_73546_h) { var3 = p_72498_1_.field_73545_a; var5 = p_72498_1_.field_73543_b; var7 = p_72498_1_.field_73544_c; } if(p_72498_1_.field_73547_i) { var9 = p_72498_1_.field_73542_e; var10 = p_72498_1_.field_73539_f; } var2.field_70139_V = 0.0F; var2.field_70159_w = var2.field_70181_x = var2.field_70179_y = 0.0D; var2.func_70080_a(var3, var5, var7, var9, var10); p_72498_1_.field_73545_a = var2.field_70165_t; p_72498_1_.field_73543_b = var2.field_70121_D.field_72338_b; p_72498_1_.field_73544_c = var2.field_70161_v; p_72498_1_.field_73541_d = var2.field_70163_u; this.field_72555_g.func_74429_a(p_72498_1_); if(!this.field_72561_j) { this.field_72563_h.field_71439_g.field_70169_q = this.field_72563_h.field_71439_g.field_70165_t; this.field_72563_h.field_71439_g.field_70167_r = this.field_72563_h.field_71439_g.field_70163_u; this.field_72563_h.field_71439_g.field_70166_s = this.field_72563_h.field_71439_g.field_70161_v; this.field_72561_j = true; this.field_72563_h.func_71373_a((GuiScreen)null); } }
public void handleFlying(Packet10Flying par1Packet10Flying) { EntityClientPlayerMP entityclientplayermp = this.mc.thePlayer; double d0 = entityclientplayermp.posX; double d1 = entityclientplayermp.posY; double d2 = entityclientplayermp.posZ; float f = entityclientplayermp.rotationYaw; float f1 = entityclientplayermp.rotationPitch; if (par1Packet10Flying.moving) { d0 = par1Packet10Flying.xPosition; d1 = par1Packet10Flying.yPosition; d2 = par1Packet10Flying.zPosition; } if (par1Packet10Flying.rotating) { f = par1Packet10Flying.yaw; f1 = par1Packet10Flying.pitch; } entityclientplayermp.ySize = 0.0F; entityclientplayermp.motionX = entityclientplayermp.motionY = entityclientplayermp.motionZ = 0.0D; entityclientplayermp.setPositionAndRotation(d0, d1, d2, f, f1); par1Packet10Flying.xPosition = entityclientplayermp.posX; par1Packet10Flying.yPosition = entityclientplayermp.boundingBox.minY; par1Packet10Flying.zPosition = entityclientplayermp.posZ; par1Packet10Flying.stance = entityclientplayermp.posY; this.netManager.addToSendQueue(par1Packet10Flying); if (!this.doneLoadingTerrain) { this.mc.thePlayer.prevPosX = this.mc.thePlayer.posX; this.mc.thePlayer.prevPosY = this.mc.thePlayer.posY; this.mc.thePlayer.prevPosZ = this.mc.thePlayer.posZ; this.doneLoadingTerrain = true; this.mc.displayGuiScreen((GuiScreen)null); } }
@Override public void handleFlying(Packet10Flying par1Packet10Flying) { nch.handleFlying(par1Packet10Flying); }
public void func_72498_a(Packet10Flying p_72498_1_) { this.func_72509_a(p_72498_1_); }
public void func_71166_b() { boolean var1 = this.func_70051_ag(); if(var1 != this.field_71171_cn) { if(var1) { this.field_71174_a.func_72552_c(new Packet19EntityAction(this, 4)); } else { this.field_71174_a.func_72552_c(new Packet19EntityAction(this, 5)); } this.field_71171_cn = var1; } boolean var2 = this.func_70093_af(); if(var2 != this.field_71170_cm) { if(var2) { this.field_71174_a.func_72552_c(new Packet19EntityAction(this, 1)); } else { this.field_71174_a.func_72552_c(new Packet19EntityAction(this, 2)); } this.field_71170_cm = var2; } double var3 = this.field_70165_t - this.field_71179_j; double var5 = this.field_70121_D.field_72338_b - this.field_71177_cg; double var7 = this.field_70161_v - this.field_71175_ci; double var9 = (double)(this.field_70177_z - this.field_71176_cj); double var11 = (double)(this.field_70125_A - this.field_71172_ck); boolean var13 = var3 * var3 + var5 * var5 + var7 * var7 > 9.0E-4D || this.field_71168_co >= 20; boolean var14 = var9 != 0.0D || var11 != 0.0D; if(this.field_70154_o != null) { this.field_71174_a.func_72552_c(new Packet13PlayerLookMove(this.field_70159_w, -999.0D, -999.0D, this.field_70179_y, this.field_70177_z, this.field_70125_A, this.field_70122_E)); var13 = false; } else if(var13 && var14) { this.field_71174_a.func_72552_c(new Packet13PlayerLookMove(this.field_70165_t, this.field_70121_D.field_72338_b, this.field_70163_u, this.field_70161_v, this.field_70177_z, this.field_70125_A, this.field_70122_E)); } else if(var13) { this.field_71174_a.func_72552_c(new Packet11PlayerPosition(this.field_70165_t, this.field_70121_D.field_72338_b, this.field_70163_u, this.field_70161_v, this.field_70122_E)); } else if(var14) { this.field_71174_a.func_72552_c(new Packet12PlayerLook(this.field_70177_z, this.field_70125_A, this.field_70122_E)); } else { this.field_71174_a.func_72552_c(new Packet10Flying(this.field_70122_E)); } ++this.field_71168_co; this.field_71173_cl = this.field_70122_E; if(var13) { this.field_71179_j = this.field_70165_t; this.field_71177_cg = this.field_70121_D.field_72338_b; this.field_71178_ch = this.field_70163_u; this.field_71175_ci = this.field_70161_v; this.field_71168_co = 0; } if(var14) { this.field_71176_cj = this.field_70177_z; this.field_71172_ck = this.field_70125_A; } }