public Packet26EntityExpOrb(EntityXPOrb p_i3291_1_) {
   this.field_73533_a = p_i3291_1_.field_70157_k;
   this.field_73531_b = MathHelper.func_76128_c(p_i3291_1_.field_70165_t * 32.0D);
   this.field_73532_c = MathHelper.func_76128_c(p_i3291_1_.field_70163_u * 32.0D);
   this.field_73529_d = MathHelper.func_76128_c(p_i3291_1_.field_70161_v * 32.0D);
   this.field_73530_e = p_i3291_1_.func_70526_d();
 }
Exemple #2
0
  private int func_75503_j() {
    if (this.field_75515_a.func_70090_H() && this.field_75517_m) {
      int var1 = (int) this.field_75515_a.field_70121_D.field_72338_b;
      Block var2 =
          this.field_75513_b.func_147439_a(
              MathHelper.func_76128_c(this.field_75515_a.field_70165_t),
              var1,
              MathHelper.func_76128_c(this.field_75515_a.field_70161_v));
      int var3 = 0;

      do {
        if (var2 != Blocks.field_150358_i && var2 != Blocks.field_150355_j) {
          return var1;
        }

        ++var1;
        var2 =
            this.field_75513_b.func_147439_a(
                MathHelper.func_76128_c(this.field_75515_a.field_70165_t),
                var1,
                MathHelper.func_76128_c(this.field_75515_a.field_70161_v));
        ++var3;
      } while (var3 <= 16);

      return (int) this.field_75515_a.field_70121_D.field_72338_b;
    } else {
      return (int) (this.field_75515_a.field_70121_D.field_72338_b + 0.5D);
    }
  }
  public Vec3 func_70489_a(double p_70489_1_, double p_70489_3_, double p_70489_5_) {
    int var7 = MathHelper.func_76128_c(p_70489_1_);
    int var8 = MathHelper.func_76128_c(p_70489_3_);
    int var9 = MathHelper.func_76128_c(p_70489_5_);
    if (BlockRailBase.func_72180_d_(this.field_70170_p, var7, var8 - 1, var9)) {
      --var8;
    }

    int var10 = this.field_70170_p.func_72798_a(var7, var8, var9);
    if (BlockRailBase.func_72184_d(var10)) {
      int var11 = this.field_70170_p.func_72805_g(var7, var8, var9);
      p_70489_3_ = (double) var8;
      if (((BlockRailBase) Block.field_71973_m[var10]).func_72183_n()) {
        var11 &= 7;
      }

      if (var11 >= 2 && var11 <= 5) {
        p_70489_3_ = (double) (var8 + 1);
      }

      int[][] var12 = field_70500_g[var11];
      double var13 = 0.0D;
      double var15 = (double) var7 + 0.5D + (double) var12[0][0] * 0.5D;
      double var17 = (double) var8 + 0.5D + (double) var12[0][1] * 0.5D;
      double var19 = (double) var9 + 0.5D + (double) var12[0][2] * 0.5D;
      double var21 = (double) var7 + 0.5D + (double) var12[1][0] * 0.5D;
      double var23 = (double) var8 + 0.5D + (double) var12[1][1] * 0.5D;
      double var25 = (double) var9 + 0.5D + (double) var12[1][2] * 0.5D;
      double var27 = var21 - var15;
      double var29 = (var23 - var17) * 2.0D;
      double var31 = var25 - var19;
      if (var27 == 0.0D) {
        p_70489_1_ = (double) var7 + 0.5D;
        var13 = p_70489_5_ - (double) var9;
      } else if (var31 == 0.0D) {
        p_70489_5_ = (double) var9 + 0.5D;
        var13 = p_70489_1_ - (double) var7;
      } else {
        double var33 = p_70489_1_ - var15;
        double var35 = p_70489_5_ - var19;
        var13 = (var33 * var27 + var35 * var31) * 2.0D;
      }

      p_70489_1_ = var15 + var27 * var13;
      p_70489_3_ = var17 + var29 * var13;
      p_70489_5_ = var19 + var31 * var13;
      if (var29 < 0.0D) {
        ++p_70489_3_;
      }

      if (var29 > 0.0D) {
        p_70489_3_ += 0.5D;
      }

      return this.field_70170_p.func_82732_R().func_72345_a(p_70489_1_, p_70489_3_, p_70489_5_);
    } else {
      return null;
    }
  }
Exemple #4
0
 public boolean func_75492_a(
     double p_75492_1_, double p_75492_3_, double p_75492_5_, double p_75492_7_) {
   PathEntity var9 =
       this.func_75488_a(
           (double) MathHelper.func_76128_c(p_75492_1_),
           (double) ((int) p_75492_3_),
           (double) MathHelper.func_76128_c(p_75492_5_));
   return this.func_75484_a(var9, p_75492_7_);
 }
Exemple #5
0
  public void func_78447_b(float p_78447_1_) {
    GL11.glDisable(3008);
    int var2;
    if (this.field_78455_a.field_71439_g.func_70027_ad()) {
      var2 = this.field_78455_a.field_71446_o.func_78341_b("/terrain.png");
      GL11.glBindTexture(3553, var2);
      this.func_78442_d(p_78447_1_);
    }

    if (this.field_78455_a.field_71439_g.func_70094_T()) {
      var2 = MathHelper.func_76128_c(this.field_78455_a.field_71439_g.field_70165_t);
      int var3 = MathHelper.func_76128_c(this.field_78455_a.field_71439_g.field_70163_u);
      int var4 = MathHelper.func_76128_c(this.field_78455_a.field_71439_g.field_70161_v);
      int var5 = this.field_78455_a.field_71446_o.func_78341_b("/terrain.png");
      GL11.glBindTexture(3553, var5);
      int var6 = this.field_78455_a.field_71441_e.func_72798_a(var2, var3, var4);
      if (this.field_78455_a.field_71441_e.func_72809_s(var2, var3, var4)) {
        this.func_78446_a(p_78447_1_, Block.field_71973_m[var6].func_71851_a(2));
      } else {
        for (int var7 = 0; var7 < 8; ++var7) {
          float var8 =
              ((float) ((var7 >> 0) % 2) - 0.5F)
                  * this.field_78455_a.field_71439_g.field_70130_N
                  * 0.9F;
          float var9 =
              ((float) ((var7 >> 1) % 2) - 0.5F)
                  * this.field_78455_a.field_71439_g.field_70131_O
                  * 0.2F;
          float var10 =
              ((float) ((var7 >> 2) % 2) - 0.5F)
                  * this.field_78455_a.field_71439_g.field_70130_N
                  * 0.9F;
          int var11 = MathHelper.func_76141_d((float) var2 + var8);
          int var12 = MathHelper.func_76141_d((float) var3 + var9);
          int var13 = MathHelper.func_76141_d((float) var4 + var10);
          if (this.field_78455_a.field_71441_e.func_72809_s(var11, var12, var13)) {
            var6 = this.field_78455_a.field_71441_e.func_72798_a(var11, var12, var13);
          }
        }
      }

      if (Block.field_71973_m[var6] != null) {
        this.func_78446_a(p_78447_1_, Block.field_71973_m[var6].func_71851_a(2));
      }
    }

    if (this.field_78455_a.field_71439_g.func_70055_a(Material.field_76244_g)) {
      var2 = this.field_78455_a.field_71446_o.func_78341_b("/misc/water.png");
      GL11.glBindTexture(3553, var2);
      this.func_78448_c(p_78447_1_);
    }

    GL11.glEnable(3008);
  }
Exemple #6
0
 public PathEntity func_75488_a(double p_75488_1_, double p_75488_3_, double p_75488_5_) {
   return !this.func_75485_k()
       ? null
       : this.field_75513_b.func_72844_a(
           this.field_75515_a,
           MathHelper.func_76128_c(p_75488_1_),
           (int) p_75488_3_,
           MathHelper.func_76128_c(p_75488_5_),
           this.func_111269_d(),
           this.field_75518_j,
           this.field_75519_k,
           this.field_75516_l,
           this.field_75517_m);
 }
Exemple #7
0
 private void func_75487_m() {
   if (!this.field_75513_b.func_72937_j(
       MathHelper.func_76128_c(this.field_75515_a.field_70165_t),
       (int) (this.field_75515_a.field_70121_D.field_72338_b + 0.5D),
       MathHelper.func_76128_c(this.field_75515_a.field_70161_v))) {
     for (int var1 = 0; var1 < this.field_75514_c.func_75874_d(); ++var1) {
       PathPoint var2 = this.field_75514_c.func_75877_a(var1);
       if (this.field_75513_b.func_72937_j(
           var2.field_75839_a, var2.field_75837_b, var2.field_75838_c)) {
         this.field_75514_c.func_75871_b(var1 - 1);
         return;
       }
     }
   }
 }
  public void func_78447_b(float p_78447_1_) {
    GL11.glDisable(3008);
    if (this.field_78455_a.field_71439_g.func_70027_ad()) {
      this.func_78442_d(p_78447_1_);
    }

    if (this.field_78455_a.field_71439_g.func_70094_T()) {
      int var2 = MathHelper.func_76128_c(this.field_78455_a.field_71439_g.field_70165_t);
      int var3 = MathHelper.func_76128_c(this.field_78455_a.field_71439_g.field_70163_u);
      int var4 = MathHelper.func_76128_c(this.field_78455_a.field_71439_g.field_70161_v);
      int var5 = this.field_78455_a.field_71441_e.func_72798_a(var2, var3, var4);
      if (this.field_78455_a.field_71441_e.func_72809_s(var2, var3, var4)) {
        this.func_78446_a(p_78447_1_, Block.field_71973_m[var5].func_71851_a(2));
      } else {
        for (int var6 = 0; var6 < 8; ++var6) {
          float var7 =
              ((float) ((var6 >> 0) % 2) - 0.5F)
                  * this.field_78455_a.field_71439_g.field_70130_N
                  * 0.9F;
          float var8 =
              ((float) ((var6 >> 1) % 2) - 0.5F)
                  * this.field_78455_a.field_71439_g.field_70131_O
                  * 0.2F;
          float var9 =
              ((float) ((var6 >> 2) % 2) - 0.5F)
                  * this.field_78455_a.field_71439_g.field_70130_N
                  * 0.9F;
          int var10 = MathHelper.func_76141_d((float) var2 + var7);
          int var11 = MathHelper.func_76141_d((float) var3 + var8);
          int var12 = MathHelper.func_76141_d((float) var4 + var9);
          if (this.field_78455_a.field_71441_e.func_72809_s(var10, var11, var12)) {
            var5 = this.field_78455_a.field_71441_e.func_72798_a(var10, var11, var12);
          }
        }
      }

      if (Block.field_71973_m[var5] != null) {
        this.func_78446_a(p_78447_1_, Block.field_71973_m[var5].func_71851_a(2));
      }
    }

    if (this.field_78455_a.field_71439_g.func_70055_a(Material.field_76244_g)) {
      this.func_78448_c(p_78447_1_);
    }

    GL11.glEnable(3008);
  }
  protected boolean func_70814_o() {
    int var1 = MathHelper.func_76128_c(this.field_70165_t);
    int var2 = MathHelper.func_76128_c(this.field_70121_D.field_72338_b);
    int var3 = MathHelper.func_76128_c(this.field_70161_v);
    if (this.field_70170_p.func_72972_b(EnumSkyBlock.Sky, var1, var2, var3)
        > this.field_70146_Z.nextInt(32)) {
      return false;
    } else {
      int var4 = this.field_70170_p.func_72957_l(var1, var2, var3);
      if (this.field_70170_p.func_72911_I()) {
        int var5 = this.field_70170_p.field_73008_k;
        this.field_70170_p.field_73008_k = 10;
        var4 = this.field_70170_p.func_72957_l(var1, var2, var3);
        this.field_70170_p.field_73008_k = var5;
      }

      return var4 <= this.field_70146_Z.nextInt(8);
    }
  }
Exemple #10
0
  protected void func_70629_bd() {
    if (--this.field_70955_e <= 0) {
      this.field_70170_p.field_72982_D.func_75551_a(
          MathHelper.func_76128_c(this.field_70165_t),
          MathHelper.func_76128_c(this.field_70163_u),
          MathHelper.func_76128_c(this.field_70161_v));
      this.field_70955_e = 70 + this.field_70146_Z.nextInt(50);
      this.field_70954_d =
          this.field_70170_p.field_72982_D.func_75550_a(
              MathHelper.func_76128_c(this.field_70165_t),
              MathHelper.func_76128_c(this.field_70163_u),
              MathHelper.func_76128_c(this.field_70161_v),
              32);
      if (this.field_70954_d == null) {
        this.func_110177_bN();
      } else {
        ChunkCoordinates var1 = this.field_70954_d.func_75577_a();
        this.func_110171_b(
            var1.field_71574_a,
            var1.field_71572_b,
            var1.field_71573_c,
            (int) ((float) this.field_70954_d.func_75568_b() * 0.6F));
        if (this.field_82190_bM) {
          this.field_82190_bM = false;
          this.field_70954_d.func_82683_b(5);
        }
      }
    }

    if (!this.func_70940_q() && this.field_70961_j > 0) {
      --this.field_70961_j;
      if (this.field_70961_j <= 0) {
        if (this.field_70959_by) {
          if (this.field_70963_i.size() > 1) {
            Iterator var3 = this.field_70963_i.iterator();

            while (var3.hasNext()) {
              MerchantRecipe var2 = (MerchantRecipe) var3.next();
              if (var2.func_82784_g()) {
                var2.func_82783_a(
                    this.field_70146_Z.nextInt(6) + this.field_70146_Z.nextInt(6) + 2);
              }
            }
          }

          this.func_70950_c(1);
          this.field_70959_by = false;
          if (this.field_70954_d != null && this.field_82189_bL != null) {
            this.field_70170_p.func_72960_a(this, (byte) 14);
            this.field_70954_d.func_82688_a(this.field_82189_bL, 1);
          }
        }

        this.func_70690_d(new PotionEffect(Potion.field_76428_l.field_76415_H, 200, 0));
      }
    }

    super.func_70629_bd();
  }
Exemple #11
0
  public void func_70612_e(float p_70612_1_, float p_70612_2_) {
    if (this.func_70090_H()) {
      this.func_70060_a(p_70612_1_, p_70612_2_, 0.02F);
      this.func_70091_d(this.field_70159_w, this.field_70181_x, this.field_70179_y);
      this.field_70159_w *= 0.800000011920929D;
      this.field_70181_x *= 0.800000011920929D;
      this.field_70179_y *= 0.800000011920929D;
    } else if (this.func_70058_J()) {
      this.func_70060_a(p_70612_1_, p_70612_2_, 0.02F);
      this.func_70091_d(this.field_70159_w, this.field_70181_x, this.field_70179_y);
      this.field_70159_w *= 0.5D;
      this.field_70181_x *= 0.5D;
      this.field_70179_y *= 0.5D;
    } else {
      float var3 = 0.91F;
      if (this.field_70122_E) {
        var3 = 0.54600006F;
        int var4 =
            this.field_70170_p.func_72798_a(
                MathHelper.func_76128_c(this.field_70165_t),
                MathHelper.func_76128_c(this.field_70121_D.field_72338_b) - 1,
                MathHelper.func_76128_c(this.field_70161_v));
        if (var4 > 0) {
          var3 = Block.field_71973_m[var4].field_72016_cq * 0.91F;
        }
      }

      float var8 = 0.16277136F / (var3 * var3 * var3);
      this.func_70060_a(p_70612_1_, p_70612_2_, this.field_70122_E ? 0.1F * var8 : 0.02F);
      var3 = 0.91F;
      if (this.field_70122_E) {
        var3 = 0.54600006F;
        int var5 =
            this.field_70170_p.func_72798_a(
                MathHelper.func_76128_c(this.field_70165_t),
                MathHelper.func_76128_c(this.field_70121_D.field_72338_b) - 1,
                MathHelper.func_76128_c(this.field_70161_v));
        if (var5 > 0) {
          var3 = Block.field_71973_m[var5].field_72016_cq * 0.91F;
        }
      }

      this.func_70091_d(this.field_70159_w, this.field_70181_x, this.field_70179_y);
      this.field_70159_w *= (double) var3;
      this.field_70181_x *= (double) var3;
      this.field_70179_y *= (double) var3;
    }

    this.field_70722_aY = this.field_70721_aZ;
    double var10 = this.field_70165_t - this.field_70169_q;
    double var9 = this.field_70161_v - this.field_70166_s;
    float var7 = MathHelper.func_76133_a(var10 * var10 + var9 * var9) * 4.0F;
    if (var7 > 1.0F) {
      var7 = 1.0F;
    }

    this.field_70721_aZ += (var7 - this.field_70721_aZ) * 0.4F;
    this.field_70754_ba += this.field_70721_aZ;
  }
  public boolean func_70601_bi() {
    if (this.field_70170_p.field_73012_v.nextInt(3) == 0) {
      return false;
    } else {
      if (this.field_70170_p.func_72855_b(this.field_70121_D)
          && this.field_70170_p.func_72945_a(this, this.field_70121_D).isEmpty()
          && !this.field_70170_p.func_72953_d(this.field_70121_D)) {
        int var1 = MathHelper.func_76128_c(this.field_70165_t);
        int var2 = MathHelper.func_76128_c(this.field_70121_D.field_72338_b);
        int var3 = MathHelper.func_76128_c(this.field_70161_v);
        if (var2 < 63) {
          return false;
        }

        int var4 = this.field_70170_p.func_72798_a(var1, var2 - 1, var3);
        if (var4 == Block.field_71980_u.field_71990_ca
            || var4 == Block.field_71952_K.field_71990_ca) {
          return true;
        }
      }

      return false;
    }
  }
  @SideOnly(Side.CLIENT)
  public Vec3 func_70495_a(
      double p_70495_1_, double p_70495_3_, double p_70495_5_, double p_70495_7_) {
    int var9 = MathHelper.func_76128_c(p_70495_1_);
    int var10 = MathHelper.func_76128_c(p_70495_3_);
    int var11 = MathHelper.func_76128_c(p_70495_5_);
    if (BlockRailBase.func_72180_d_(this.field_70170_p, var9, var10 - 1, var11)) {
      --var10;
    }

    int var12 = this.field_70170_p.func_72798_a(var9, var10, var11);
    if (!BlockRailBase.func_72184_d(var12)) {
      return null;
    } else {
      int var13 = this.field_70170_p.func_72805_g(var9, var10, var11);
      if (((BlockRailBase) Block.field_71973_m[var12]).func_72183_n()) {
        var13 &= 7;
      }

      p_70495_3_ = (double) var10;
      if (var13 >= 2 && var13 <= 5) {
        p_70495_3_ = (double) (var10 + 1);
      }

      int[][] var14 = field_70500_g[var13];
      double var15 = (double) (var14[1][0] - var14[0][0]);
      double var17 = (double) (var14[1][2] - var14[0][2]);
      double var19 = Math.sqrt(var15 * var15 + var17 * var17);
      var15 /= var19;
      var17 /= var19;
      p_70495_1_ += var15 * p_70495_7_;
      p_70495_5_ += var17 * p_70495_7_;
      if (var14[0][1] != 0
          && MathHelper.func_76128_c(p_70495_1_) - var9 == var14[0][0]
          && MathHelper.func_76128_c(p_70495_5_) - var11 == var14[0][2]) {
        p_70495_3_ += (double) var14[0][1];
      } else if (var14[1][1] != 0
          && MathHelper.func_76128_c(p_70495_1_) - var9 == var14[1][0]
          && MathHelper.func_76128_c(p_70495_5_) - var11 == var14[1][2]) {
        p_70495_3_ += (double) var14[1][1];
      }

      return this.func_70489_a(p_70495_1_, p_70495_3_, p_70495_5_);
    }
  }
Exemple #14
0
  public void func_70071_h_() {
    super.func_70071_h_();
    if (this.field_70293_c > 0) {
      --this.field_70293_c;
    }

    this.field_70169_q = this.field_70165_t;
    this.field_70167_r = this.field_70163_u;
    this.field_70166_s = this.field_70161_v;
    this.field_70181_x -= 0.03999999910593033D;
    this.field_70145_X =
        this.func_70048_i(
            this.field_70165_t,
            (this.field_70121_D.field_72338_b + this.field_70121_D.field_72337_e) / 2.0D,
            this.field_70161_v);
    this.func_70091_d(this.field_70159_w, this.field_70181_x, this.field_70179_y);
    boolean var1 =
        (int) this.field_70169_q != (int) this.field_70165_t
            || (int) this.field_70167_r != (int) this.field_70163_u
            || (int) this.field_70166_s != (int) this.field_70161_v;
    if (var1 || this.field_70173_aa % 25 == 0) {
      if (this.field_70170_p.func_72803_f(
              MathHelper.func_76128_c(this.field_70165_t),
              MathHelper.func_76128_c(this.field_70163_u),
              MathHelper.func_76128_c(this.field_70161_v))
          == Material.field_76256_h) {
        this.field_70181_x = 0.20000000298023224D;
        this.field_70159_w =
            (double) ((this.field_70146_Z.nextFloat() - this.field_70146_Z.nextFloat()) * 0.2F);
        this.field_70179_y =
            (double) ((this.field_70146_Z.nextFloat() - this.field_70146_Z.nextFloat()) * 0.2F);
        this.func_85030_a("random.fizz", 0.4F, 2.0F + this.field_70146_Z.nextFloat() * 0.4F);
      }

      if (!this.field_70170_p.field_72995_K) {
        this.func_85054_d();
      }
    }

    float var2 = 0.98F;
    if (this.field_70122_E) {
      var2 = 0.58800006F;
      int var3 =
          this.field_70170_p.func_72798_a(
              MathHelper.func_76128_c(this.field_70165_t),
              MathHelper.func_76128_c(this.field_70121_D.field_72338_b) - 1,
              MathHelper.func_76128_c(this.field_70161_v));
      if (var3 > 0) {
        var2 = Block.field_71973_m[var3].field_72016_cq * 0.98F;
      }
    }

    this.field_70159_w *= (double) var2;
    this.field_70181_x *= 0.9800000190734863D;
    this.field_70179_y *= (double) var2;
    if (this.field_70122_E) {
      this.field_70181_x *= -0.5D;
    }

    ++this.field_70292_b;
    if (!this.field_70170_p.field_72995_K && this.field_70292_b >= 6000) {
      this.func_70106_y();
    }
  }
  public boolean func_77648_a(
      ItemStack p_77648_1_,
      EntityPlayer p_77648_2_,
      World p_77648_3_,
      int p_77648_4_,
      int p_77648_5_,
      int p_77648_6_,
      int p_77648_7_,
      float p_77648_8_,
      float p_77648_9_,
      float p_77648_10_) {
    if (p_77648_7_ == 0) {
      return false;
    } else if (!p_77648_3_.func_72803_f(p_77648_4_, p_77648_5_, p_77648_6_).func_76220_a()) {
      return false;
    } else {
      if (p_77648_7_ == 1) {
        ++p_77648_5_;
      }

      if (p_77648_7_ == 2) {
        --p_77648_6_;
      }

      if (p_77648_7_ == 3) {
        ++p_77648_6_;
      }

      if (p_77648_7_ == 4) {
        --p_77648_4_;
      }

      if (p_77648_7_ == 5) {
        ++p_77648_4_;
      }

      if (!p_77648_2_.func_82247_a(p_77648_4_, p_77648_5_, p_77648_6_, p_77648_7_, p_77648_1_)) {
        return false;
      } else if (!Block.field_82512_cj.func_71930_b(
          p_77648_3_, p_77648_4_, p_77648_5_, p_77648_6_)) {
        return false;
      } else {
        p_77648_3_.func_72832_d(
            p_77648_4_, p_77648_5_, p_77648_6_, Block.field_82512_cj.field_71990_ca, p_77648_7_, 2);
        int var11 = 0;
        if (p_77648_7_ == 1) {
          var11 =
              MathHelper.func_76128_c((double) (p_77648_2_.field_70177_z * 16.0F / 360.0F) + 0.5D)
                  & 15;
        }

        TileEntity var12 = p_77648_3_.func_72796_p(p_77648_4_, p_77648_5_, p_77648_6_);
        if (var12 != null && var12 instanceof TileEntitySkull) {
          String var13 = "";
          if (p_77648_1_.func_77942_o() && p_77648_1_.func_77978_p().func_74764_b("SkullOwner")) {
            var13 = p_77648_1_.func_77978_p().func_74779_i("SkullOwner");
          }

          ((TileEntitySkull) var12).func_82118_a(p_77648_1_.func_77960_j(), var13);
          ((TileEntitySkull) var12).func_82116_a(var11);
          ((BlockSkull) Block.field_82512_cj)
              .func_82529_a(
                  p_77648_3_, p_77648_4_, p_77648_5_, p_77648_6_, (TileEntitySkull) var12);
        }

        --p_77648_1_.field_77994_a;
        return true;
      }
    }
  }
  protected void func_94091_a(
      int p_94091_1_,
      int p_94091_2_,
      int p_94091_3_,
      double p_94091_4_,
      double p_94091_6_,
      int p_94091_8_,
      int p_94091_9_) {
    this.field_70143_R = 0.0F;
    Vec3 var10 = this.func_70489_a(this.field_70165_t, this.field_70163_u, this.field_70161_v);
    this.field_70163_u = (double) p_94091_2_;
    boolean var11 = false;
    boolean var12 = false;
    if (p_94091_8_ == Block.field_71954_T.field_71990_ca) {
      var11 = (p_94091_9_ & 8) != 0;
      var12 = !var11;
    }

    if (((BlockRailBase) Block.field_71973_m[p_94091_8_]).func_72183_n()) {
      p_94091_9_ &= 7;
    }

    if (p_94091_9_ >= 2 && p_94091_9_ <= 5) {
      this.field_70163_u = (double) (p_94091_2_ + 1);
    }

    if (p_94091_9_ == 2) {
      this.field_70159_w -= p_94091_6_;
    }

    if (p_94091_9_ == 3) {
      this.field_70159_w += p_94091_6_;
    }

    if (p_94091_9_ == 4) {
      this.field_70179_y += p_94091_6_;
    }

    if (p_94091_9_ == 5) {
      this.field_70179_y -= p_94091_6_;
    }

    int[][] var13 = field_70500_g[p_94091_9_];
    double var14 = (double) (var13[1][0] - var13[0][0]);
    double var16 = (double) (var13[1][2] - var13[0][2]);
    double var18 = Math.sqrt(var14 * var14 + var16 * var16);
    double var20 = this.field_70159_w * var14 + this.field_70179_y * var16;
    if (var20 < 0.0D) {
      var14 = -var14;
      var16 = -var16;
    }

    double var22 =
        Math.sqrt(
            this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y);
    if (var22 > 2.0D) {
      var22 = 2.0D;
    }

    this.field_70159_w = var22 * var14 / var18;
    this.field_70179_y = var22 * var16 / var18;
    double var24;
    double var26;
    double var28;
    double var30;
    if (this.field_70153_n != null && this.field_70153_n instanceof EntityLivingBase) {
      var24 = (double) ((EntityLivingBase) this.field_70153_n).field_70701_bs;
      if (var24 > 0.0D) {
        var26 = -Math.sin((double) (this.field_70153_n.field_70177_z * 3.1415927F / 180.0F));
        var28 = Math.cos((double) (this.field_70153_n.field_70177_z * 3.1415927F / 180.0F));
        var30 = this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y;
        if (var30 < 0.01D) {
          this.field_70159_w += var26 * 0.1D;
          this.field_70179_y += var28 * 0.1D;
          var12 = false;
        }
      }
    }

    if (var12) {
      var24 =
          Math.sqrt(
              this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y);
      if (var24 < 0.03D) {
        this.field_70159_w *= 0.0D;
        this.field_70181_x *= 0.0D;
        this.field_70179_y *= 0.0D;
      } else {
        this.field_70159_w *= 0.5D;
        this.field_70181_x *= 0.0D;
        this.field_70179_y *= 0.5D;
      }
    }

    var24 = 0.0D;
    var26 = (double) p_94091_1_ + 0.5D + (double) var13[0][0] * 0.5D;
    var28 = (double) p_94091_3_ + 0.5D + (double) var13[0][2] * 0.5D;
    var30 = (double) p_94091_1_ + 0.5D + (double) var13[1][0] * 0.5D;
    double var32 = (double) p_94091_3_ + 0.5D + (double) var13[1][2] * 0.5D;
    var14 = var30 - var26;
    var16 = var32 - var28;
    double var34;
    double var36;
    if (var14 == 0.0D) {
      this.field_70165_t = (double) p_94091_1_ + 0.5D;
      var24 = this.field_70161_v - (double) p_94091_3_;
    } else if (var16 == 0.0D) {
      this.field_70161_v = (double) p_94091_3_ + 0.5D;
      var24 = this.field_70165_t - (double) p_94091_1_;
    } else {
      var34 = this.field_70165_t - var26;
      var36 = this.field_70161_v - var28;
      var24 = (var34 * var14 + var36 * var16) * 2.0D;
    }

    this.field_70165_t = var26 + var14 * var24;
    this.field_70161_v = var28 + var16 * var24;
    this.func_70107_b(
        this.field_70165_t, this.field_70163_u + (double) this.field_70129_M, this.field_70161_v);
    var34 = this.field_70159_w;
    var36 = this.field_70179_y;
    if (this.field_70153_n != null) {
      var34 *= 0.75D;
      var36 *= 0.75D;
    }

    if (var34 < -p_94091_4_) {
      var34 = -p_94091_4_;
    }

    if (var34 > p_94091_4_) {
      var34 = p_94091_4_;
    }

    if (var36 < -p_94091_4_) {
      var36 = -p_94091_4_;
    }

    if (var36 > p_94091_4_) {
      var36 = p_94091_4_;
    }

    this.func_70091_d(var34, 0.0D, var36);
    if (var13[0][1] != 0
        && MathHelper.func_76128_c(this.field_70165_t) - p_94091_1_ == var13[0][0]
        && MathHelper.func_76128_c(this.field_70161_v) - p_94091_3_ == var13[0][2]) {
      this.func_70107_b(
          this.field_70165_t, this.field_70163_u + (double) var13[0][1], this.field_70161_v);
    } else if (var13[1][1] != 0
        && MathHelper.func_76128_c(this.field_70165_t) - p_94091_1_ == var13[1][0]
        && MathHelper.func_76128_c(this.field_70161_v) - p_94091_3_ == var13[1][2]) {
      this.func_70107_b(
          this.field_70165_t, this.field_70163_u + (double) var13[1][1], this.field_70161_v);
    }

    this.func_94101_h();
    Vec3 var38 = this.func_70489_a(this.field_70165_t, this.field_70163_u, this.field_70161_v);
    if (var38 != null && var10 != null) {
      double var39 = (var10.field_72448_b - var38.field_72448_b) * 0.05D;
      var22 =
          Math.sqrt(
              this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y);
      if (var22 > 0.0D) {
        this.field_70159_w = this.field_70159_w / var22 * (var22 + var39);
        this.field_70179_y = this.field_70179_y / var22 * (var22 + var39);
      }

      this.func_70107_b(this.field_70165_t, var38.field_72448_b, this.field_70161_v);
    }

    int var45 = MathHelper.func_76128_c(this.field_70165_t);
    int var40 = MathHelper.func_76128_c(this.field_70161_v);
    if (var45 != p_94091_1_ || var40 != p_94091_3_) {
      var22 =
          Math.sqrt(
              this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y);
      this.field_70159_w = var22 * (double) (var45 - p_94091_1_);
      this.field_70179_y = var22 * (double) (var40 - p_94091_3_);
    }

    if (var11) {
      double var41 =
          Math.sqrt(
              this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y);
      if (var41 > 0.01D) {
        double var43 = 0.06D;
        this.field_70159_w += this.field_70159_w / var41 * var43;
        this.field_70179_y += this.field_70179_y / var41 * var43;
      } else if (p_94091_9_ == 1) {
        if (this.field_70170_p.func_72809_s(p_94091_1_ - 1, p_94091_2_, p_94091_3_)) {
          this.field_70159_w = 0.02D;
        } else if (this.field_70170_p.func_72809_s(p_94091_1_ + 1, p_94091_2_, p_94091_3_)) {
          this.field_70159_w = -0.02D;
        }
      } else if (p_94091_9_ == 0) {
        if (this.field_70170_p.func_72809_s(p_94091_1_, p_94091_2_, p_94091_3_ - 1)) {
          this.field_70179_y = 0.02D;
        } else if (this.field_70170_p.func_72809_s(p_94091_1_, p_94091_2_, p_94091_3_ + 1)) {
          this.field_70179_y = -0.02D;
        }
      }
    }
  }
  public void func_70071_h_() {
    if (this.field_82344_g != null) {
      this.field_82344_g.func_73660_a();
    }

    if (this.func_70496_j() > 0) {
      this.func_70497_h(this.func_70496_j() - 1);
    }

    if (this.func_70491_i() > 0.0F) {
      this.func_70492_c(this.func_70491_i() - 1.0F);
    }

    if (this.field_70163_u < -64.0D) {
      this.func_70076_C();
    }

    int var2;
    if (!this.field_70170_p.field_72995_K && this.field_70170_p instanceof WorldServer) {
      this.field_70170_p.field_72984_F.func_76320_a("portal");
      MinecraftServer var1 = ((WorldServer) this.field_70170_p).func_73046_m();
      var2 = this.func_82145_z();
      if (this.field_71087_bX) {
        if (var1.func_71255_r()) {
          if (this.field_70154_o == null && this.field_82153_h++ >= var2) {
            this.field_82153_h = var2;
            this.field_71088_bW = this.func_82147_ab();
            byte var3;
            if (this.field_70170_p.field_73011_w.field_76574_g == -1) {
              var3 = 0;
            } else {
              var3 = -1;
            }

            this.func_71027_c(var3);
          }

          this.field_71087_bX = false;
        }
      } else {
        if (this.field_82153_h > 0) {
          this.field_82153_h -= 4;
        }

        if (this.field_82153_h < 0) {
          this.field_82153_h = 0;
        }
      }

      if (this.field_71088_bW > 0) {
        --this.field_71088_bW;
      }

      this.field_70170_p.field_72984_F.func_76319_b();
    }

    if (this.field_70170_p.field_72995_K) {
      if (this.field_70510_h > 0) {
        double var19 =
            this.field_70165_t
                + (this.field_70511_i - this.field_70165_t) / (double) this.field_70510_h;
        double var21 =
            this.field_70163_u
                + (this.field_70509_j - this.field_70163_u) / (double) this.field_70510_h;
        double var5 =
            this.field_70161_v
                + (this.field_70514_an - this.field_70161_v) / (double) this.field_70510_h;
        double var7 = MathHelper.func_76138_g(this.field_70512_ao - (double) this.field_70177_z);
        this.field_70177_z =
            (float) ((double) this.field_70177_z + var7 / (double) this.field_70510_h);
        this.field_70125_A =
            (float)
                ((double) this.field_70125_A
                    + (this.field_70513_ap - (double) this.field_70125_A)
                        / (double) this.field_70510_h);
        --this.field_70510_h;
        this.func_70107_b(var19, var21, var5);
        this.func_70101_b(this.field_70177_z, this.field_70125_A);
      } else {
        this.func_70107_b(this.field_70165_t, this.field_70163_u, this.field_70161_v);
        this.func_70101_b(this.field_70177_z, this.field_70125_A);
      }

    } else {
      this.field_70169_q = this.field_70165_t;
      this.field_70167_r = this.field_70163_u;
      this.field_70166_s = this.field_70161_v;
      this.field_70181_x -= 0.03999999910593033D;
      int var18 = MathHelper.func_76128_c(this.field_70165_t);
      var2 = MathHelper.func_76128_c(this.field_70163_u);
      int var20 = MathHelper.func_76128_c(this.field_70161_v);
      if (BlockRailBase.func_72180_d_(this.field_70170_p, var18, var2 - 1, var20)) {
        --var2;
      }

      double var4 = 0.4D;
      double var6 = 0.0078125D;
      int var8 = this.field_70170_p.func_72798_a(var18, var2, var20);
      if (BlockRailBase.func_72184_d(var8)) {
        int var9 = this.field_70170_p.func_72805_g(var18, var2, var20);
        this.func_94091_a(var18, var2, var20, var4, var6, var8, var9);
        if (var8 == Block.field_94337_cv.field_71990_ca) {
          this.func_96095_a(var18, var2, var20, (var9 & 8) != 0);
        }
      } else {
        this.func_94088_b(var4);
      }

      this.func_70017_D();
      this.field_70125_A = 0.0F;
      double var22 = this.field_70169_q - this.field_70165_t;
      double var11 = this.field_70166_s - this.field_70161_v;
      if (var22 * var22 + var11 * var11 > 0.001D) {
        this.field_70177_z = (float) (Math.atan2(var11, var22) * 180.0D / 3.141592653589793D);
        if (this.field_70499_f) {
          this.field_70177_z += 180.0F;
        }
      }

      double var13 = (double) MathHelper.func_76142_g(this.field_70177_z - this.field_70126_B);
      if (var13 < -170.0D || var13 >= 170.0D) {
        this.field_70177_z += 180.0F;
        this.field_70499_f = !this.field_70499_f;
      }

      this.func_70101_b(this.field_70177_z, this.field_70125_A);
      List var15 =
          this.field_70170_p.func_72839_b(
              this,
              this.field_70121_D.func_72314_b(0.20000000298023224D, 0.0D, 0.20000000298023224D));
      if (var15 != null && !var15.isEmpty()) {
        for (int var16 = 0; var16 < var15.size(); ++var16) {
          Entity var17 = (Entity) var15.get(var16);
          if (var17 != this.field_70153_n
              && var17.func_70104_M()
              && var17 instanceof EntityMinecart) {
            var17.func_70108_f(this);
          }
        }
      }

      if (this.field_70153_n != null && this.field_70153_n.field_70128_L) {
        if (this.field_70153_n.field_70154_o == this) {
          this.field_70153_n.field_70154_o = null;
        }

        this.field_70153_n = null;
      }
    }
  }
  private PathEntity func_75857_a(
      Entity p_75857_1_,
      double p_75857_2_,
      double p_75857_4_,
      double p_75857_6_,
      float p_75857_8_) {
    this.field_75866_b.func_75848_a();
    this.field_75867_c.func_76046_c();
    boolean var9 = this.field_75863_g;
    int var10 = MathHelper.func_76128_c(p_75857_1_.field_70121_D.field_72338_b + 0.5D);
    if (this.field_75869_h && p_75857_1_.func_70090_H()) {
      var10 = (int) p_75857_1_.field_70121_D.field_72338_b;

      for (int var11 =
              this.field_75868_a.func_72798_a(
                  MathHelper.func_76128_c(p_75857_1_.field_70165_t),
                  var10,
                  MathHelper.func_76128_c(p_75857_1_.field_70161_v));
          var11 == Block.field_71942_A.field_71990_ca
              || var11 == Block.field_71943_B.field_71990_ca;
          var11 =
              this.field_75868_a.func_72798_a(
                  MathHelper.func_76128_c(p_75857_1_.field_70165_t),
                  var10,
                  MathHelper.func_76128_c(p_75857_1_.field_70161_v))) {
        ++var10;
      }

      var9 = this.field_75863_g;
      this.field_75863_g = false;
    } else {
      var10 = MathHelper.func_76128_c(p_75857_1_.field_70121_D.field_72338_b + 0.5D);
    }

    PathPoint var15 =
        this.func_75854_a(
            MathHelper.func_76128_c(p_75857_1_.field_70121_D.field_72340_a),
            var10,
            MathHelper.func_76128_c(p_75857_1_.field_70121_D.field_72339_c));
    PathPoint var12 =
        this.func_75854_a(
            MathHelper.func_76128_c(p_75857_2_ - (double) (p_75857_1_.field_70130_N / 2.0F)),
            MathHelper.func_76128_c(p_75857_4_),
            MathHelper.func_76128_c(p_75857_6_ - (double) (p_75857_1_.field_70130_N / 2.0F)));
    PathPoint var13 =
        new PathPoint(
            MathHelper.func_76141_d(p_75857_1_.field_70130_N + 1.0F),
            MathHelper.func_76141_d(p_75857_1_.field_70131_O + 1.0F),
            MathHelper.func_76141_d(p_75857_1_.field_70130_N + 1.0F));
    PathEntity var14 = this.func_75861_a(p_75857_1_, var15, var12, var13, p_75857_8_);
    this.field_75863_g = var9;
    return var14;
  }
Exemple #19
0
  public void func_78440_a(float p_78440_1_) {
    float var2 = this.field_78451_d + (this.field_78454_c - this.field_78451_d) * p_78440_1_;
    EntityClientPlayerMP var3 = this.field_78455_a.field_71439_g;
    float var4 = var3.field_70127_C + (var3.field_70125_A - var3.field_70127_C) * p_78440_1_;
    GL11.glPushMatrix();
    GL11.glRotatef(var4, 1.0F, 0.0F, 0.0F);
    GL11.glRotatef(
        var3.field_70126_B + (var3.field_70177_z - var3.field_70126_B) * p_78440_1_,
        0.0F,
        1.0F,
        0.0F);
    RenderHelper.func_74519_b();
    GL11.glPopMatrix();
    float var6;
    float var7;
    if (var3 instanceof EntityPlayerSP) {
      EntityPlayerSP var5 = (EntityPlayerSP) var3;
      var6 = var5.field_71164_i + (var5.field_71155_g - var5.field_71164_i) * p_78440_1_;
      var7 = var5.field_71163_h + (var5.field_71154_f - var5.field_71163_h) * p_78440_1_;
      GL11.glRotatef((var3.field_70125_A - var6) * 0.1F, 1.0F, 0.0F, 0.0F);
      GL11.glRotatef((var3.field_70177_z - var7) * 0.1F, 0.0F, 1.0F, 0.0F);
    }

    ItemStack var17 = this.field_78453_b;
    var6 =
        this.field_78455_a.field_71441_e.func_72801_o(
            MathHelper.func_76128_c(var3.field_70165_t),
            MathHelper.func_76128_c(var3.field_70163_u),
            MathHelper.func_76128_c(var3.field_70161_v));
    var6 = 1.0F;
    int var18 =
        this.field_78455_a.field_71441_e.func_72802_i(
            MathHelper.func_76128_c(var3.field_70165_t),
            MathHelper.func_76128_c(var3.field_70163_u),
            MathHelper.func_76128_c(var3.field_70161_v),
            0);
    int var8 = var18 % 65536;
    int var9 = var18 / 65536;
    OpenGlHelper.func_77475_a(OpenGlHelper.field_77476_b, (float) var8 / 1.0F, (float) var9 / 1.0F);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    float var10;
    float var21;
    float var20;
    if (var17 != null) {
      var18 = Item.field_77698_e[var17.field_77993_c].func_82790_a(var17, 0);
      var20 = (float) (var18 >> 16 & 255) / 255.0F;
      var21 = (float) (var18 >> 8 & 255) / 255.0F;
      var10 = (float) (var18 & 255) / 255.0F;
      GL11.glColor4f(var6 * var20, var6 * var21, var6 * var10, 1.0F);
    } else {
      GL11.glColor4f(var6, var6, var6, 1.0F);
    }

    float var11;
    float var12;
    float var13;
    Render var24;
    RenderPlayer var26;
    if (var17 != null && var17.field_77993_c == Item.field_77744_bd.field_77779_bT) {
      GL11.glPushMatrix();
      var7 = 0.8F;
      var20 = var3.func_70678_g(p_78440_1_);
      var21 = MathHelper.func_76126_a(var20 * 3.1415927F);
      var10 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
      GL11.glTranslatef(
          -var10 * 0.4F,
          MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F * 2.0F) * 0.2F,
          -var21 * 0.2F);
      var20 = 1.0F - var4 / 45.0F + 0.1F;
      if (var20 < 0.0F) {
        var20 = 0.0F;
      }

      if (var20 > 1.0F) {
        var20 = 1.0F;
      }

      var20 = -MathHelper.func_76134_b(var20 * 3.1415927F) * 0.5F + 0.5F;
      GL11.glTranslatef(
          0.0F, 0.0F * var7 - (1.0F - var2) * 1.2F - var20 * 0.5F + 0.04F, -0.9F * var7);
      GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(var20 * -85.0F, 0.0F, 0.0F, 1.0F);
      GL11.glEnable('\u803a');
      GL11.glBindTexture(
          3553,
          this.field_78455_a.field_71446_o.func_78350_a(
              this.field_78455_a.field_71439_g.field_70120_cr,
              this.field_78455_a.field_71439_g.func_70073_O()));

      for (var9 = 0; var9 < 2; ++var9) {
        int var22 = var9 * 2 - 1;
        GL11.glPushMatrix();
        GL11.glTranslatef(-0.0F, -0.6F, 1.1F * (float) var22);
        GL11.glRotatef((float) (-45 * var22), 1.0F, 0.0F, 0.0F);
        GL11.glRotatef(-90.0F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(59.0F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef((float) (-65 * var22), 0.0F, 1.0F, 0.0F);
        var24 = RenderManager.field_78727_a.func_78713_a(this.field_78455_a.field_71439_g);
        var26 = (RenderPlayer) var24;
        var13 = 1.0F;
        GL11.glScalef(var13, var13, var13);
        var26.func_82441_a(this.field_78455_a.field_71439_g);
        GL11.glPopMatrix();
      }

      var21 = var3.func_70678_g(p_78440_1_);
      var10 = MathHelper.func_76126_a(var21 * var21 * 3.1415927F);
      var11 = MathHelper.func_76126_a(MathHelper.func_76129_c(var21) * 3.1415927F);
      GL11.glRotatef(-var10 * 20.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-var11 * 20.0F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(-var11 * 80.0F, 1.0F, 0.0F, 0.0F);
      var12 = 0.38F;
      GL11.glScalef(var12, var12, var12);
      GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
      GL11.glTranslatef(-1.0F, -1.0F, 0.0F);
      var13 = 0.015625F;
      GL11.glScalef(var13, var13, var13);
      this.field_78455_a.field_71446_o.func_78342_b(
          this.field_78455_a.field_71446_o.func_78341_b("/misc/mapbg.png"));
      Tessellator var28 = Tessellator.field_78398_a;
      GL11.glNormal3f(0.0F, 0.0F, -1.0F);
      var28.func_78382_b();
      byte var27 = 7;
      var28.func_78374_a((double) (0 - var27), (double) (128 + var27), 0.0D, 0.0D, 1.0D);
      var28.func_78374_a((double) (128 + var27), (double) (128 + var27), 0.0D, 1.0D, 1.0D);
      var28.func_78374_a((double) (128 + var27), (double) (0 - var27), 0.0D, 1.0D, 0.0D);
      var28.func_78374_a((double) (0 - var27), (double) (0 - var27), 0.0D, 0.0D, 0.0D);
      var28.func_78381_a();
      MapData var16 = Item.field_77744_bd.func_77873_a(var17, this.field_78455_a.field_71441_e);
      if (var16 != null) {
        this.field_78449_f.func_78319_a(
            this.field_78455_a.field_71439_g, this.field_78455_a.field_71446_o, var16);
      }

      GL11.glPopMatrix();
    } else if (var17 != null) {
      GL11.glPushMatrix();
      var7 = 0.8F;
      if (var3.func_71052_bv() > 0) {
        EnumAction var19 = var17.func_77975_n();
        if (var19 == EnumAction.eat || var19 == EnumAction.drink) {
          var21 = (float) var3.func_71052_bv() - p_78440_1_ + 1.0F;
          var10 = 1.0F - var21 / (float) var17.func_77988_m();
          var11 = 1.0F - var10;
          var11 = var11 * var11 * var11;
          var11 = var11 * var11 * var11;
          var11 = var11 * var11 * var11;
          var12 = 1.0F - var11;
          GL11.glTranslatef(
              0.0F,
              MathHelper.func_76135_e(MathHelper.func_76134_b(var21 / 4.0F * 3.1415927F) * 0.1F)
                  * (float) ((double) var10 > 0.2D ? 1 : 0),
              0.0F);
          GL11.glTranslatef(var12 * 0.6F, -var12 * 0.5F, 0.0F);
          GL11.glRotatef(var12 * 90.0F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(var12 * 10.0F, 1.0F, 0.0F, 0.0F);
          GL11.glRotatef(var12 * 30.0F, 0.0F, 0.0F, 1.0F);
        }
      } else {
        var20 = var3.func_70678_g(p_78440_1_);
        var21 = MathHelper.func_76126_a(var20 * 3.1415927F);
        var10 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
        GL11.glTranslatef(
            -var10 * 0.4F,
            MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F * 2.0F) * 0.2F,
            -var21 * 0.2F);
      }

      GL11.glTranslatef(0.7F * var7, -0.65F * var7 - (1.0F - var2) * 0.6F, -0.9F * var7);
      GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
      GL11.glEnable('\u803a');
      var20 = var3.func_70678_g(p_78440_1_);
      var21 = MathHelper.func_76126_a(var20 * var20 * 3.1415927F);
      var10 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
      GL11.glRotatef(-var21 * 20.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-var10 * 20.0F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(-var10 * 80.0F, 1.0F, 0.0F, 0.0F);
      var11 = 0.4F;
      GL11.glScalef(var11, var11, var11);
      float var14;
      float var15;
      if (var3.func_71052_bv() > 0) {
        EnumAction var23 = var17.func_77975_n();
        if (var23 == EnumAction.block) {
          GL11.glTranslatef(-0.5F, 0.2F, 0.0F);
          GL11.glRotatef(30.0F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(-80.0F, 1.0F, 0.0F, 0.0F);
          GL11.glRotatef(60.0F, 0.0F, 1.0F, 0.0F);
        } else if (var23 == EnumAction.bow) {
          GL11.glRotatef(-18.0F, 0.0F, 0.0F, 1.0F);
          GL11.glRotatef(-12.0F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(-8.0F, 1.0F, 0.0F, 0.0F);
          GL11.glTranslatef(-0.9F, 0.2F, 0.0F);
          var13 = (float) var17.func_77988_m() - ((float) var3.func_71052_bv() - p_78440_1_ + 1.0F);
          var14 = var13 / 20.0F;
          var14 = (var14 * var14 + var14 * 2.0F) / 3.0F;
          if (var14 > 1.0F) {
            var14 = 1.0F;
          }

          if (var14 > 0.1F) {
            GL11.glTranslatef(
                0.0F,
                MathHelper.func_76126_a((var13 - 0.1F) * 1.3F) * 0.01F * (var14 - 0.1F),
                0.0F);
          }

          GL11.glTranslatef(0.0F, 0.0F, var14 * 0.1F);
          GL11.glRotatef(-335.0F, 0.0F, 0.0F, 1.0F);
          GL11.glRotatef(-50.0F, 0.0F, 1.0F, 0.0F);
          GL11.glTranslatef(0.0F, 0.5F, 0.0F);
          var15 = 1.0F + var14 * 0.2F;
          GL11.glScalef(1.0F, 1.0F, var15);
          GL11.glTranslatef(0.0F, -0.5F, 0.0F);
          GL11.glRotatef(50.0F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(335.0F, 0.0F, 0.0F, 1.0F);
        }
      }

      if (var17.func_77973_b().func_77629_n_()) {
        GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
      }

      if (var17.func_77973_b().func_77623_v()) {
        this.func_78443_a(var3, var17, 0);
        int var25 = Item.field_77698_e[var17.field_77993_c].func_82790_a(var17, 1);
        var13 = (float) (var25 >> 16 & 255) / 255.0F;
        var14 = (float) (var25 >> 8 & 255) / 255.0F;
        var15 = (float) (var25 & 255) / 255.0F;
        GL11.glColor4f(var6 * var13, var6 * var14, var6 * var15, 1.0F);
        this.func_78443_a(var3, var17, 1);
      } else {
        this.func_78443_a(var3, var17, 0);
      }

      GL11.glPopMatrix();
    } else if (!var3.func_82150_aj()) {
      GL11.glPushMatrix();
      var7 = 0.8F;
      var20 = var3.func_70678_g(p_78440_1_);
      var21 = MathHelper.func_76126_a(var20 * 3.1415927F);
      var10 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
      GL11.glTranslatef(
          -var10 * 0.3F,
          MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F * 2.0F) * 0.4F,
          -var21 * 0.4F);
      GL11.glTranslatef(0.8F * var7, -0.75F * var7 - (1.0F - var2) * 0.6F, -0.9F * var7);
      GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
      GL11.glEnable('\u803a');
      var20 = var3.func_70678_g(p_78440_1_);
      var21 = MathHelper.func_76126_a(var20 * var20 * 3.1415927F);
      var10 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
      GL11.glRotatef(var10 * 70.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-var21 * 20.0F, 0.0F, 0.0F, 1.0F);
      GL11.glBindTexture(
          3553,
          this.field_78455_a.field_71446_o.func_78350_a(
              this.field_78455_a.field_71439_g.field_70120_cr,
              this.field_78455_a.field_71439_g.func_70073_O()));
      GL11.glTranslatef(-1.0F, 3.6F, 3.5F);
      GL11.glRotatef(120.0F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(200.0F, 1.0F, 0.0F, 0.0F);
      GL11.glRotatef(-135.0F, 0.0F, 1.0F, 0.0F);
      GL11.glScalef(1.0F, 1.0F, 1.0F);
      GL11.glTranslatef(5.6F, 0.0F, 0.0F);
      var24 = RenderManager.field_78727_a.func_78713_a(this.field_78455_a.field_71439_g);
      var26 = (RenderPlayer) var24;
      var13 = 1.0F;
      GL11.glScalef(var13, var13, var13);
      var26.func_82441_a(this.field_78455_a.field_71439_g);
      GL11.glPopMatrix();
    }

    GL11.glDisable('\u803a');
    RenderHelper.func_74518_a();
  }
  public boolean func_77648_a(
      ItemStack p_77648_1_,
      EntityPlayer p_77648_2_,
      World p_77648_3_,
      int p_77648_4_,
      int p_77648_5_,
      int p_77648_6_,
      int p_77648_7_,
      float p_77648_8_,
      float p_77648_9_,
      float p_77648_10_) {
    if (p_77648_7_ == 0) {
      return false;
    } else if (!p_77648_3_.func_72803_f(p_77648_4_, p_77648_5_, p_77648_6_).func_76220_a()) {
      return false;
    } else {
      if (p_77648_7_ == 1) {
        ++p_77648_5_;
      }

      if (p_77648_7_ == 2) {
        --p_77648_6_;
      }

      if (p_77648_7_ == 3) {
        ++p_77648_6_;
      }

      if (p_77648_7_ == 4) {
        --p_77648_4_;
      }

      if (p_77648_7_ == 5) {
        ++p_77648_4_;
      }

      if (!p_77648_2_.func_82247_a(p_77648_4_, p_77648_5_, p_77648_6_, p_77648_7_, p_77648_1_)) {
        return false;
      } else if (!Block.field_72053_aD.func_71930_b(
          p_77648_3_, p_77648_4_, p_77648_5_, p_77648_6_)) {
        return false;
      } else {
        if (p_77648_7_ == 1) {
          int var11 =
              MathHelper.func_76128_c(
                      (double) ((p_77648_2_.field_70177_z + 180.0F) * 16.0F / 360.0F) + 0.5D)
                  & 15;
          p_77648_3_.func_72832_d(
              p_77648_4_, p_77648_5_, p_77648_6_, Block.field_72053_aD.field_71990_ca, var11, 2);
        } else {
          p_77648_3_.func_72832_d(
              p_77648_4_,
              p_77648_5_,
              p_77648_6_,
              Block.field_72042_aI.field_71990_ca,
              p_77648_7_,
              2);
        }

        --p_77648_1_.field_77994_a;
        TileEntitySign var12 =
            (TileEntitySign) p_77648_3_.func_72796_p(p_77648_4_, p_77648_5_, p_77648_6_);
        if (var12 != null) {
          p_77648_2_.func_71014_a(var12);
        }

        return true;
      }
    }
  }
Exemple #21
0
  private boolean func_75493_a(
      Vec3 p_75493_1_, Vec3 p_75493_2_, int p_75493_3_, int p_75493_4_, int p_75493_5_) {
    int var6 = MathHelper.func_76128_c(p_75493_1_.field_72450_a);
    int var7 = MathHelper.func_76128_c(p_75493_1_.field_72449_c);
    double var8 = p_75493_2_.field_72450_a - p_75493_1_.field_72450_a;
    double var10 = p_75493_2_.field_72449_c - p_75493_1_.field_72449_c;
    double var12 = var8 * var8 + var10 * var10;
    if (var12 < 1.0E-8D) {
      return false;
    } else {
      double var14 = 1.0D / Math.sqrt(var12);
      var8 *= var14;
      var10 *= var14;
      p_75493_3_ += 2;
      p_75493_5_ += 2;
      if (!this.func_75483_a(
          var6,
          (int) p_75493_1_.field_72448_b,
          var7,
          p_75493_3_,
          p_75493_4_,
          p_75493_5_,
          p_75493_1_,
          var8,
          var10)) {
        return false;
      } else {
        p_75493_3_ -= 2;
        p_75493_5_ -= 2;
        double var16 = 1.0D / Math.abs(var8);
        double var18 = 1.0D / Math.abs(var10);
        double var20 = (double) (var6 * 1) - p_75493_1_.field_72450_a;
        double var22 = (double) (var7 * 1) - p_75493_1_.field_72449_c;
        if (var8 >= 0.0D) {
          ++var20;
        }

        if (var10 >= 0.0D) {
          ++var22;
        }

        var20 /= var8;
        var22 /= var10;
        int var24 = var8 < 0.0D ? -1 : 1;
        int var25 = var10 < 0.0D ? -1 : 1;
        int var26 = MathHelper.func_76128_c(p_75493_2_.field_72450_a);
        int var27 = MathHelper.func_76128_c(p_75493_2_.field_72449_c);
        int var28 = var26 - var6;
        int var29 = var27 - var7;

        do {
          if (var28 * var24 <= 0 && var29 * var25 <= 0) {
            return true;
          }

          if (var20 < var22) {
            var20 += var16;
            var6 += var24;
            var28 = var26 - var6;
          } else {
            var22 += var18;
            var7 += var25;
            var29 = var27 - var7;
          }
        } while (this.func_75483_a(
            var6,
            (int) p_75493_1_.field_72448_b,
            var7,
            p_75493_3_,
            p_75493_4_,
            p_75493_5_,
            p_75493_1_,
            var8,
            var10));

        return false;
      }
    }
  }
  public void func_78440_a(float p_78440_1_) {
    float var2 = this.field_78451_d + (this.field_78454_c - this.field_78451_d) * p_78440_1_;
    EntityClientPlayerMP var3 = this.field_78455_a.field_71439_g;
    float var4 = var3.field_70127_C + (var3.field_70125_A - var3.field_70127_C) * p_78440_1_;
    GL11.glPushMatrix();
    GL11.glRotatef(var4, 1.0F, 0.0F, 0.0F);
    GL11.glRotatef(
        var3.field_70126_B + (var3.field_70177_z - var3.field_70126_B) * p_78440_1_,
        0.0F,
        1.0F,
        0.0F);
    RenderHelper.func_74519_b();
    GL11.glPopMatrix();
    EntityPlayerSP var5 = (EntityPlayerSP) var3;
    float var6 = var5.field_71164_i + (var5.field_71155_g - var5.field_71164_i) * p_78440_1_;
    float var7 = var5.field_71163_h + (var5.field_71154_f - var5.field_71163_h) * p_78440_1_;
    GL11.glRotatef((var3.field_70125_A - var6) * 0.1F, 1.0F, 0.0F, 0.0F);
    GL11.glRotatef((var3.field_70177_z - var7) * 0.1F, 0.0F, 1.0F, 0.0F);
    ItemStack var8 = this.field_78453_b;
    float var9 =
        this.field_78455_a.field_71441_e.func_72801_o(
            MathHelper.func_76128_c(var3.field_70165_t),
            MathHelper.func_76128_c(var3.field_70163_u),
            MathHelper.func_76128_c(var3.field_70161_v));
    var9 = 1.0F;
    int var10 =
        this.field_78455_a.field_71441_e.func_72802_i(
            MathHelper.func_76128_c(var3.field_70165_t),
            MathHelper.func_76128_c(var3.field_70163_u),
            MathHelper.func_76128_c(var3.field_70161_v),
            0);
    int var11 = var10 % 65536;
    int var12 = var10 / 65536;
    OpenGlHelper.func_77475_a(
        OpenGlHelper.field_77476_b, (float) var11 / 1.0F, (float) var12 / 1.0F);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    float var13;
    float var20;
    float var22;
    if (var8 != null) {
      var10 = Item.field_77698_e[var8.field_77993_c].func_82790_a(var8, 0);
      var20 = (float) (var10 >> 16 & 255) / 255.0F;
      var22 = (float) (var10 >> 8 & 255) / 255.0F;
      var13 = (float) (var10 & 255) / 255.0F;
      GL11.glColor4f(var9 * var20, var9 * var22, var9 * var13, 1.0F);
    } else {
      GL11.glColor4f(var9, var9, var9, 1.0F);
    }

    float var14;
    float var15;
    float var16;
    float var21;
    Render var27;
    RenderPlayer var26;
    if (var8 != null && var8.field_77993_c == Item.field_77744_bd.field_77779_bT) {
      GL11.glPushMatrix();
      var21 = 0.8F;
      var20 = var3.func_70678_g(p_78440_1_);
      var22 = MathHelper.func_76126_a(var20 * 3.1415927F);
      var13 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
      GL11.glTranslatef(
          -var13 * 0.4F,
          MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F * 2.0F) * 0.2F,
          -var22 * 0.2F);
      var20 = 1.0F - var4 / 45.0F + 0.1F;
      if (var20 < 0.0F) {
        var20 = 0.0F;
      }

      if (var20 > 1.0F) {
        var20 = 1.0F;
      }

      var20 = -MathHelper.func_76134_b(var20 * 3.1415927F) * 0.5F + 0.5F;
      GL11.glTranslatef(
          0.0F, 0.0F * var21 - (1.0F - var2) * 1.2F - var20 * 0.5F + 0.04F, -0.9F * var21);
      GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(var20 * -85.0F, 0.0F, 0.0F, 1.0F);
      GL11.glEnable('\u803a');
      this.field_78455_a.func_110434_K().func_110577_a(var3.func_110306_p());

      for (var12 = 0; var12 < 2; ++var12) {
        int var24 = var12 * 2 - 1;
        GL11.glPushMatrix();
        GL11.glTranslatef(-0.0F, -0.6F, 1.1F * (float) var24);
        GL11.glRotatef((float) (-45 * var24), 1.0F, 0.0F, 0.0F);
        GL11.glRotatef(-90.0F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(59.0F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef((float) (-65 * var24), 0.0F, 1.0F, 0.0F);
        var27 = RenderManager.field_78727_a.func_78713_a(this.field_78455_a.field_71439_g);
        var26 = (RenderPlayer) var27;
        var16 = 1.0F;
        GL11.glScalef(var16, var16, var16);
        var26.func_82441_a(this.field_78455_a.field_71439_g);
        GL11.glPopMatrix();
      }

      var22 = var3.func_70678_g(p_78440_1_);
      var13 = MathHelper.func_76126_a(var22 * var22 * 3.1415927F);
      var14 = MathHelper.func_76126_a(MathHelper.func_76129_c(var22) * 3.1415927F);
      GL11.glRotatef(-var13 * 20.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-var14 * 20.0F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(-var14 * 80.0F, 1.0F, 0.0F, 0.0F);
      var15 = 0.38F;
      GL11.glScalef(var15, var15, var15);
      GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
      GL11.glTranslatef(-1.0F, -1.0F, 0.0F);
      var16 = 0.015625F;
      GL11.glScalef(var16, var16, var16);
      this.field_78455_a.func_110434_K().func_110577_a(field_110931_c);
      Tessellator var30 = Tessellator.field_78398_a;
      GL11.glNormal3f(0.0F, 0.0F, -1.0F);
      var30.func_78382_b();
      byte var29 = 7;
      var30.func_78374_a((double) (0 - var29), (double) (128 + var29), 0.0D, 0.0D, 1.0D);
      var30.func_78374_a((double) (128 + var29), (double) (128 + var29), 0.0D, 1.0D, 1.0D);
      var30.func_78374_a((double) (128 + var29), (double) (0 - var29), 0.0D, 1.0D, 0.0D);
      var30.func_78374_a((double) (0 - var29), (double) (0 - var29), 0.0D, 0.0D, 0.0D);
      var30.func_78381_a();
      MapData var19 = Item.field_77744_bd.func_77873_a(var8, this.field_78455_a.field_71441_e);
      if (var19 != null) {
        this.field_78449_f.func_78319_a(
            this.field_78455_a.field_71439_g, this.field_78455_a.func_110434_K(), var19);
      }

      GL11.glPopMatrix();
    } else if (var8 != null) {
      GL11.glPushMatrix();
      var21 = 0.8F;
      if (var3.func_71052_bv() > 0) {
        EnumAction var23 = var8.func_77975_n();
        if (var23 == EnumAction.eat || var23 == EnumAction.drink) {
          var22 = (float) var3.func_71052_bv() - p_78440_1_ + 1.0F;
          var13 = 1.0F - var22 / (float) var8.func_77988_m();
          var14 = 1.0F - var13;
          var14 = var14 * var14 * var14;
          var14 = var14 * var14 * var14;
          var14 = var14 * var14 * var14;
          var15 = 1.0F - var14;
          GL11.glTranslatef(
              0.0F,
              MathHelper.func_76135_e(MathHelper.func_76134_b(var22 / 4.0F * 3.1415927F) * 0.1F)
                  * (float) ((double) var13 > 0.2D ? 1 : 0),
              0.0F);
          GL11.glTranslatef(var15 * 0.6F, -var15 * 0.5F, 0.0F);
          GL11.glRotatef(var15 * 90.0F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(var15 * 10.0F, 1.0F, 0.0F, 0.0F);
          GL11.glRotatef(var15 * 30.0F, 0.0F, 0.0F, 1.0F);
        }
      } else {
        var20 = var3.func_70678_g(p_78440_1_);
        var22 = MathHelper.func_76126_a(var20 * 3.1415927F);
        var13 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
        GL11.glTranslatef(
            -var13 * 0.4F,
            MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F * 2.0F) * 0.2F,
            -var22 * 0.2F);
      }

      GL11.glTranslatef(0.7F * var21, -0.65F * var21 - (1.0F - var2) * 0.6F, -0.9F * var21);
      GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
      GL11.glEnable('\u803a');
      var20 = var3.func_70678_g(p_78440_1_);
      var22 = MathHelper.func_76126_a(var20 * var20 * 3.1415927F);
      var13 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
      GL11.glRotatef(-var22 * 20.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-var13 * 20.0F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(-var13 * 80.0F, 1.0F, 0.0F, 0.0F);
      var14 = 0.4F;
      GL11.glScalef(var14, var14, var14);
      float var17;
      float var18;
      if (var3.func_71052_bv() > 0) {
        EnumAction var25 = var8.func_77975_n();
        if (var25 == EnumAction.block) {
          GL11.glTranslatef(-0.5F, 0.2F, 0.0F);
          GL11.glRotatef(30.0F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(-80.0F, 1.0F, 0.0F, 0.0F);
          GL11.glRotatef(60.0F, 0.0F, 1.0F, 0.0F);
        } else if (var25 == EnumAction.bow) {
          GL11.glRotatef(-18.0F, 0.0F, 0.0F, 1.0F);
          GL11.glRotatef(-12.0F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(-8.0F, 1.0F, 0.0F, 0.0F);
          GL11.glTranslatef(-0.9F, 0.2F, 0.0F);
          var16 = (float) var8.func_77988_m() - ((float) var3.func_71052_bv() - p_78440_1_ + 1.0F);
          var17 = var16 / 20.0F;
          var17 = (var17 * var17 + var17 * 2.0F) / 3.0F;
          if (var17 > 1.0F) {
            var17 = 1.0F;
          }

          if (var17 > 0.1F) {
            GL11.glTranslatef(
                0.0F,
                MathHelper.func_76126_a((var16 - 0.1F) * 1.3F) * 0.01F * (var17 - 0.1F),
                0.0F);
          }

          GL11.glTranslatef(0.0F, 0.0F, var17 * 0.1F);
          GL11.glRotatef(-335.0F, 0.0F, 0.0F, 1.0F);
          GL11.glRotatef(-50.0F, 0.0F, 1.0F, 0.0F);
          GL11.glTranslatef(0.0F, 0.5F, 0.0F);
          var18 = 1.0F + var17 * 0.2F;
          GL11.glScalef(1.0F, 1.0F, var18);
          GL11.glTranslatef(0.0F, -0.5F, 0.0F);
          GL11.glRotatef(50.0F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(335.0F, 0.0F, 0.0F, 1.0F);
        }
      }

      if (var8.func_77973_b().func_77629_n_()) {
        GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
      }

      if (var8.func_77973_b().func_77623_v()) {
        this.func_78443_a(var3, var8, 0);
        int var28 = Item.field_77698_e[var8.field_77993_c].func_82790_a(var8, 1);
        var16 = (float) (var28 >> 16 & 255) / 255.0F;
        var17 = (float) (var28 >> 8 & 255) / 255.0F;
        var18 = (float) (var28 & 255) / 255.0F;
        GL11.glColor4f(var9 * var16, var9 * var17, var9 * var18, 1.0F);
        this.func_78443_a(var3, var8, 1);
      } else {
        this.func_78443_a(var3, var8, 0);
      }

      GL11.glPopMatrix();
    } else if (!var3.func_82150_aj()) {
      GL11.glPushMatrix();
      var21 = 0.8F;
      var20 = var3.func_70678_g(p_78440_1_);
      var22 = MathHelper.func_76126_a(var20 * 3.1415927F);
      var13 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
      GL11.glTranslatef(
          -var13 * 0.3F,
          MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F * 2.0F) * 0.4F,
          -var22 * 0.4F);
      GL11.glTranslatef(0.8F * var21, -0.75F * var21 - (1.0F - var2) * 0.6F, -0.9F * var21);
      GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
      GL11.glEnable('\u803a');
      var20 = var3.func_70678_g(p_78440_1_);
      var22 = MathHelper.func_76126_a(var20 * var20 * 3.1415927F);
      var13 = MathHelper.func_76126_a(MathHelper.func_76129_c(var20) * 3.1415927F);
      GL11.glRotatef(var13 * 70.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-var22 * 20.0F, 0.0F, 0.0F, 1.0F);
      this.field_78455_a.func_110434_K().func_110577_a(var3.func_110306_p());
      GL11.glTranslatef(-1.0F, 3.6F, 3.5F);
      GL11.glRotatef(120.0F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(200.0F, 1.0F, 0.0F, 0.0F);
      GL11.glRotatef(-135.0F, 0.0F, 1.0F, 0.0F);
      GL11.glScalef(1.0F, 1.0F, 1.0F);
      GL11.glTranslatef(5.6F, 0.0F, 0.0F);
      var27 = RenderManager.field_78727_a.func_78713_a(this.field_78455_a.field_71439_g);
      var26 = (RenderPlayer) var27;
      var16 = 1.0F;
      GL11.glScalef(var16, var16, var16);
      var26.func_82441_a(this.field_78455_a.field_71439_g);
      GL11.glPopMatrix();
    }

    GL11.glDisable('\u803a');
    RenderHelper.func_74518_a();
  }