private void func_78448_c(float p_78448_1_) {
   Tessellator tessellator = Tessellator.field_78398_a;
   float f = field_78455_a.field_71439_g.func_70013_c(p_78448_1_);
   GL11.glColor4f(f, f, f, 0.5F);
   GL11.glEnable(3042);
   GL11.glBlendFunc(770, 771);
   GL11.glPushMatrix();
   float f1 = 4F;
   float f2 = -1F;
   float f3 = 1.0F;
   float f4 = -1F;
   float f5 = 1.0F;
   float f6 = -0.5F;
   float f7 = -field_78455_a.field_71439_g.field_70177_z / 64F;
   float f8 = field_78455_a.field_71439_g.field_70125_A / 64F;
   tessellator.func_78382_b();
   tessellator.func_78374_a(f2, f4, f6, f1 + f7, f1 + f8);
   tessellator.func_78374_a(f3, f4, f6, 0.0F + f7, f1 + f8);
   tessellator.func_78374_a(f3, f5, f6, 0.0F + f7, 0.0F + f8);
   tessellator.func_78374_a(f2, f5, f6, f1 + f7, 0.0F + f8);
   tessellator.func_78381_a();
   GL11.glPopMatrix();
   GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
   GL11.glDisable(3042);
 }
  private void func_78442_d(float p_78442_1_) {
    Tessellator tessellator = Tessellator.field_78398_a;
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.9F);
    GL11.glEnable(3042);
    GL11.glBlendFunc(770, 771);
    float f = 1.0F;
    for (int i = 0; i < 2; i++) {
      GL11.glPushMatrix();
      int j = Block.field_72067_ar.field_72059_bZ + i * 16;
      int k = (j & 0xf) << 4;
      int l = j & 0xf0;
      float f1 = (float) k / 256F;
      float f2 = ((float) k + 15.99F) / 256F;
      float f3 = (float) l / 256F;
      float f4 = ((float) l + 15.99F) / 256F;
      float f5 = (0.0F - f) / 2.0F;
      float f6 = f5 + f;
      float f7 = 0.0F - f / 2.0F;
      float f8 = f7 + f;
      float f9 = -0.5F;
      GL11.glTranslatef((float) (-(i * 2 - 1)) * 0.24F, -0.3F, 0.0F);
      GL11.glRotatef((float) (i * 2 - 1) * 10F, 0.0F, 1.0F, 0.0F);
      tessellator.func_78382_b();
      tessellator.func_78374_a(f5, f7, f9, f2, f4);
      tessellator.func_78374_a(f6, f7, f9, f1, f4);
      tessellator.func_78374_a(f6, f8, f9, f1, f3);
      tessellator.func_78374_a(f5, f8, f9, f2, f3);
      tessellator.func_78381_a();
      GL11.glPopMatrix();
    }

    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    GL11.glDisable(3042);
  }
 private void func_78446_a(float p_78446_1_, int p_78446_2_) {
   Tessellator tessellator = Tessellator.field_78398_a;
   float f = field_78455_a.field_71439_g.func_70013_c(p_78446_1_);
   f = 0.1F;
   GL11.glColor4f(f, f, f, 0.5F);
   GL11.glPushMatrix();
   float f1 = -1F;
   float f2 = 1.0F;
   float f3 = -1F;
   float f4 = 1.0F;
   float f5 = -0.5F;
   float f6 = 0.0078125F;
   float f7 = (float) (p_78446_2_ % 16) / 256F - f6;
   float f8 = ((float) (p_78446_2_ % 16) + 15.99F) / 256F + f6;
   float f9 = (float) (p_78446_2_ / 16) / 256F - f6;
   float f10 = ((float) (p_78446_2_ / 16) + 15.99F) / 256F + f6;
   tessellator.func_78382_b();
   tessellator.func_78374_a(f1, f3, f5, f8, f10);
   tessellator.func_78374_a(f2, f3, f5, f7, f10);
   tessellator.func_78374_a(f2, f4, f5, f7, f9);
   tessellator.func_78374_a(f1, f4, f5, f8, f9);
   tessellator.func_78381_a();
   GL11.glPopMatrix();
   GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
 }
Beispiel #4
0
 public void func_70539_a(
     Tessellator p_70539_1_,
     float p_70539_2_,
     float p_70539_3_,
     float p_70539_4_,
     float p_70539_5_,
     float p_70539_6_,
     float p_70539_7_) {
   float var8 = (float) (this.field_70550_a % 16) / 16.0F;
   float var9 = var8 + 0.0624375F;
   float var10 = (float) (this.field_70550_a / 16) / 16.0F;
   float var11 = var10 + 0.0624375F;
   float var12 = 0.1F * this.field_70544_f;
   float var13 =
       (float)
           (this.field_70169_q
               + (this.field_70165_t - this.field_70169_q) * (double) p_70539_2_
               - field_70556_an);
   float var14 =
       (float)
           (this.field_70167_r
               + (this.field_70163_u - this.field_70167_r) * (double) p_70539_2_
               - field_70554_ao);
   float var15 =
       (float)
           (this.field_70166_s
               + (this.field_70161_v - this.field_70166_s) * (double) p_70539_2_
               - field_70555_ap);
   float var16 = 1.0F;
   p_70539_1_.func_78386_a(
       this.field_70552_h * var16, this.field_70553_i * var16, this.field_70551_j * var16);
   p_70539_1_.func_78374_a(
       (double) (var13 - p_70539_3_ * var12 - p_70539_6_ * var12),
       (double) (var14 - p_70539_4_ * var12),
       (double) (var15 - p_70539_5_ * var12 - p_70539_7_ * var12),
       (double) var9,
       (double) var11);
   p_70539_1_.func_78374_a(
       (double) (var13 - p_70539_3_ * var12 + p_70539_6_ * var12),
       (double) (var14 + p_70539_4_ * var12),
       (double) (var15 - p_70539_5_ * var12 + p_70539_7_ * var12),
       (double) var9,
       (double) var10);
   p_70539_1_.func_78374_a(
       (double) (var13 + p_70539_3_ * var12 + p_70539_6_ * var12),
       (double) (var14 + p_70539_4_ * var12),
       (double) (var15 + p_70539_5_ * var12 + p_70539_7_ * var12),
       (double) var8,
       (double) var10);
   p_70539_1_.func_78374_a(
       (double) (var13 + p_70539_3_ * var12 - p_70539_6_ * var12),
       (double) (var14 - p_70539_4_ * var12),
       (double) (var15 + p_70539_5_ * var12 - p_70539_7_ * var12),
       (double) var8,
       (double) var11);
 }
Beispiel #5
0
 private void func_77206_b(int p_77206_1_, int p_77206_2_, int p_77206_3_, int p_77206_4_) {
   Tessellator var5 = Tessellator.field_78398_a;
   GL11.glBindTexture(3553, this.field_77233_a.field_71446_o.func_78341_b("/gui/background.png"));
   GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
   float var6 = 32.0F;
   var5.func_78382_b();
   var5.func_78384_a(4210752, p_77206_4_);
   var5.func_78374_a(0.0D, (double) p_77206_2_, 0.0D, 0.0D, (double) ((float) p_77206_2_ / var6));
   var5.func_78374_a(
       (double) this.field_77228_g,
       (double) p_77206_2_,
       0.0D,
       (double) ((float) this.field_77228_g / var6),
       (double) ((float) p_77206_2_ / var6));
   var5.func_78384_a(4210752, p_77206_3_);
   var5.func_78374_a(
       (double) this.field_77228_g,
       (double) p_77206_1_,
       0.0D,
       (double) ((float) this.field_77228_g / var6),
       (double) ((float) p_77206_1_ / var6));
   var5.func_78374_a(0.0D, (double) p_77206_1_, 0.0D, 0.0D, (double) ((float) p_77206_1_ / var6));
   var5.func_78381_a();
 }
 protected void func_77214_a(
     int p_77214_1_, int p_77214_2_, int p_77214_3_, int p_77214_4_, Tessellator p_77214_5_) {
   TexturePackBase texturepackbase =
       (TexturePackBase)
           GuiTexturePacks.func_73953_j(field_77270_a)
               .field_71418_C
               .func_77293_d()
               .get(p_77214_1_);
   texturepackbase.func_77535_b(GuiTexturePacks.func_73961_k(field_77270_a).field_71446_o);
   GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
   p_77214_5_.func_78382_b();
   p_77214_5_.func_78378_d(0xffffff);
   p_77214_5_.func_78374_a(p_77214_2_, p_77214_3_ + p_77214_4_, 0.0D, 0.0D, 1.0D);
   p_77214_5_.func_78374_a(p_77214_2_ + 32, p_77214_3_ + p_77214_4_, 0.0D, 1.0D, 1.0D);
   p_77214_5_.func_78374_a(p_77214_2_ + 32, p_77214_3_, 0.0D, 1.0D, 0.0D);
   p_77214_5_.func_78374_a(p_77214_2_, p_77214_3_, 0.0D, 0.0D, 0.0D);
   p_77214_5_.func_78381_a();
   field_77270_a.func_73731_b(
       GuiTexturePacks.func_73960_l(field_77270_a),
       texturepackbase.func_77538_c(),
       p_77214_2_ + 32 + 2,
       p_77214_3_ + 1,
       0xffffff);
   field_77270_a.func_73731_b(
       GuiTexturePacks.func_73963_m(field_77270_a),
       texturepackbase.func_77531_d(),
       p_77214_2_ + 32 + 2,
       p_77214_3_ + 12,
       0x808080);
   field_77270_a.func_73731_b(
       GuiTexturePacks.func_73954_n(field_77270_a),
       texturepackbase.func_77537_e(),
       p_77214_2_ + 32 + 2,
       p_77214_3_ + 12 + 10,
       0x808080);
 }
Beispiel #7
0
  public void func_77211_a(int p_77211_1_, int p_77211_2_, float p_77211_3_) {
    this.field_77230_e = p_77211_1_;
    this.field_77227_f = p_77211_2_;
    this.func_77221_c();
    int var4 = this.func_77217_a();
    int var5 = this.func_77225_g();
    int var6 = var5 + 6;
    int var9;
    int var10;
    int var11;
    int var13;
    int var19;
    if (Mouse.isButtonDown(0)) {
      if (this.field_77237_m == -1.0F) {
        boolean var7 = true;
        if (p_77211_2_ >= this.field_77231_b && p_77211_2_ <= this.field_77232_c) {
          int var8 = this.field_77228_g / 2 - 110;
          var9 = this.field_77228_g / 2 + 110;
          var10 =
              p_77211_2_ - this.field_77231_b - this.field_77242_t + (int) this.field_77235_o - 4;
          var11 = var10 / this.field_77229_d;
          if (p_77211_1_ >= var8
              && p_77211_1_ <= var9
              && var11 >= 0
              && var10 >= 0
              && var11 < var4) {
            boolean var12 =
                var11 == this.field_77246_p && Minecraft.func_71386_F() - this.field_77245_q < 250L;
            this.func_77213_a(var11, var12);
            this.field_77246_p = var11;
            this.field_77245_q = Minecraft.func_71386_F();
          } else if (p_77211_1_ >= var8 && p_77211_1_ <= var9 && var10 < 0) {
            this.func_77224_a(
                p_77211_1_ - var8, p_77211_2_ - this.field_77231_b + (int) this.field_77235_o - 4);
            var7 = false;
          }

          if (p_77211_1_ >= var5 && p_77211_1_ <= var6) {
            this.field_77234_n = -1.0F;
            var19 = this.func_77209_d();
            if (var19 < 1) {
              var19 = 1;
            }

            var13 =
                (int)
                    ((float)
                            ((this.field_77232_c - this.field_77231_b)
                                * (this.field_77232_c - this.field_77231_b))
                        / (float) this.func_77212_b());
            if (var13 < 32) {
              var13 = 32;
            }

            if (var13 > this.field_77232_c - this.field_77231_b - 8) {
              var13 = this.field_77232_c - this.field_77231_b - 8;
            }

            this.field_77234_n /=
                (float) (this.field_77232_c - this.field_77231_b - var13) / (float) var19;
          } else {
            this.field_77234_n = 1.0F;
          }

          if (var7) {
            this.field_77237_m = (float) p_77211_2_;
          } else {
            this.field_77237_m = -2.0F;
          }
        } else {
          this.field_77237_m = -2.0F;
        }
      } else if (this.field_77237_m >= 0.0F) {
        this.field_77235_o -= ((float) p_77211_2_ - this.field_77237_m) * this.field_77234_n;
        this.field_77237_m = (float) p_77211_2_;
      }
    } else {
      while (Mouse.next()) {
        int var16 = Mouse.getEventDWheel();
        if (var16 != 0) {
          if (var16 > 0) {
            var16 = -1;
          } else if (var16 < 0) {
            var16 = 1;
          }

          this.field_77235_o += (float) (var16 * this.field_77229_d / 2);
        }
      }

      this.field_77237_m = -1.0F;
    }

    this.func_77226_h();
    GL11.glDisable(2896);
    GL11.glDisable(2912);
    Tessellator var18 = Tessellator.field_78398_a;
    GL11.glBindTexture(3553, this.field_77233_a.field_71446_o.func_78341_b("/gui/background.png"));
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    float var17 = 32.0F;
    var18.func_78382_b();
    var18.func_78378_d(2105376);
    var18.func_78374_a(
        (double) this.field_77238_j,
        (double) this.field_77232_c,
        0.0D,
        (double) ((float) this.field_77238_j / var17),
        (double) ((float) (this.field_77232_c + (int) this.field_77235_o) / var17));
    var18.func_78374_a(
        (double) this.field_77241_i,
        (double) this.field_77232_c,
        0.0D,
        (double) ((float) this.field_77241_i / var17),
        (double) ((float) (this.field_77232_c + (int) this.field_77235_o) / var17));
    var18.func_78374_a(
        (double) this.field_77241_i,
        (double) this.field_77231_b,
        0.0D,
        (double) ((float) this.field_77241_i / var17),
        (double) ((float) (this.field_77231_b + (int) this.field_77235_o) / var17));
    var18.func_78374_a(
        (double) this.field_77238_j,
        (double) this.field_77231_b,
        0.0D,
        (double) ((float) this.field_77238_j / var17),
        (double) ((float) (this.field_77231_b + (int) this.field_77235_o) / var17));
    var18.func_78381_a();
    var9 = this.field_77228_g / 2 - 92 - 16;
    var10 = this.field_77231_b + 4 - (int) this.field_77235_o;
    if (this.field_77243_s) {
      this.func_77222_a(var9, var10, var18);
    }

    int var14;
    for (var11 = 0; var11 < var4; ++var11) {
      var19 = var10 + var11 * this.field_77229_d + this.field_77242_t;
      var13 = this.field_77229_d - 4;
      if (var19 <= this.field_77232_c && var19 + var13 >= this.field_77231_b) {
        if (this.field_77244_r && this.func_77218_a(var11)) {
          var14 = this.field_77228_g / 2 - 110;
          int var15 = this.field_77228_g / 2 + 110;
          GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
          GL11.glDisable(3553);
          var18.func_78382_b();
          var18.func_78378_d(8421504);
          var18.func_78374_a((double) var14, (double) (var19 + var13 + 2), 0.0D, 0.0D, 1.0D);
          var18.func_78374_a((double) var15, (double) (var19 + var13 + 2), 0.0D, 1.0D, 1.0D);
          var18.func_78374_a((double) var15, (double) (var19 - 2), 0.0D, 1.0D, 0.0D);
          var18.func_78374_a((double) var14, (double) (var19 - 2), 0.0D, 0.0D, 0.0D);
          var18.func_78378_d(0);
          var18.func_78374_a((double) (var14 + 1), (double) (var19 + var13 + 1), 0.0D, 0.0D, 1.0D);
          var18.func_78374_a((double) (var15 - 1), (double) (var19 + var13 + 1), 0.0D, 1.0D, 1.0D);
          var18.func_78374_a((double) (var15 - 1), (double) (var19 - 1), 0.0D, 1.0D, 0.0D);
          var18.func_78374_a((double) (var14 + 1), (double) (var19 - 1), 0.0D, 0.0D, 0.0D);
          var18.func_78381_a();
          GL11.glEnable(3553);
        }

        this.func_77214_a(var11, var9, var19, var13, var18);
      }
    }

    GL11.glDisable(2929);
    byte var20 = 4;
    this.func_77206_b(0, this.field_77231_b, 255, 255);
    this.func_77206_b(this.field_77232_c, this.field_77240_h, 255, 255);
    GL11.glEnable(3042);
    GL11.glBlendFunc(770, 771);
    GL11.glDisable(3008);
    GL11.glShadeModel(7425);
    GL11.glDisable(3553);
    var18.func_78382_b();
    var18.func_78384_a(0, 0);
    var18.func_78374_a(
        (double) this.field_77238_j, (double) (this.field_77231_b + var20), 0.0D, 0.0D, 1.0D);
    var18.func_78374_a(
        (double) this.field_77241_i, (double) (this.field_77231_b + var20), 0.0D, 1.0D, 1.0D);
    var18.func_78384_a(0, 255);
    var18.func_78374_a((double) this.field_77241_i, (double) this.field_77231_b, 0.0D, 1.0D, 0.0D);
    var18.func_78374_a((double) this.field_77238_j, (double) this.field_77231_b, 0.0D, 0.0D, 0.0D);
    var18.func_78381_a();
    var18.func_78382_b();
    var18.func_78384_a(0, 255);
    var18.func_78374_a((double) this.field_77238_j, (double) this.field_77232_c, 0.0D, 0.0D, 1.0D);
    var18.func_78374_a((double) this.field_77241_i, (double) this.field_77232_c, 0.0D, 1.0D, 1.0D);
    var18.func_78384_a(0, 0);
    var18.func_78374_a(
        (double) this.field_77241_i, (double) (this.field_77232_c - var20), 0.0D, 1.0D, 0.0D);
    var18.func_78374_a(
        (double) this.field_77238_j, (double) (this.field_77232_c - var20), 0.0D, 0.0D, 0.0D);
    var18.func_78381_a();
    var19 = this.func_77209_d();
    if (var19 > 0) {
      var13 =
          (this.field_77232_c - this.field_77231_b)
              * (this.field_77232_c - this.field_77231_b)
              / this.func_77212_b();
      if (var13 < 32) {
        var13 = 32;
      }

      if (var13 > this.field_77232_c - this.field_77231_b - 8) {
        var13 = this.field_77232_c - this.field_77231_b - 8;
      }

      var14 =
          (int) this.field_77235_o * (this.field_77232_c - this.field_77231_b - var13) / var19
              + this.field_77231_b;
      if (var14 < this.field_77231_b) {
        var14 = this.field_77231_b;
      }

      var18.func_78382_b();
      var18.func_78384_a(0, 255);
      var18.func_78374_a((double) var5, (double) this.field_77232_c, 0.0D, 0.0D, 1.0D);
      var18.func_78374_a((double) var6, (double) this.field_77232_c, 0.0D, 1.0D, 1.0D);
      var18.func_78374_a((double) var6, (double) this.field_77231_b, 0.0D, 1.0D, 0.0D);
      var18.func_78374_a((double) var5, (double) this.field_77231_b, 0.0D, 0.0D, 0.0D);
      var18.func_78381_a();
      var18.func_78382_b();
      var18.func_78384_a(8421504, 255);
      var18.func_78374_a((double) var5, (double) (var14 + var13), 0.0D, 0.0D, 1.0D);
      var18.func_78374_a((double) var6, (double) (var14 + var13), 0.0D, 1.0D, 1.0D);
      var18.func_78374_a((double) var6, (double) var14, 0.0D, 1.0D, 0.0D);
      var18.func_78374_a((double) var5, (double) var14, 0.0D, 0.0D, 0.0D);
      var18.func_78381_a();
      var18.func_78382_b();
      var18.func_78384_a(12632256, 255);
      var18.func_78374_a((double) var5, (double) (var14 + var13 - 1), 0.0D, 0.0D, 1.0D);
      var18.func_78374_a((double) (var6 - 1), (double) (var14 + var13 - 1), 0.0D, 1.0D, 1.0D);
      var18.func_78374_a((double) (var6 - 1), (double) var14, 0.0D, 1.0D, 0.0D);
      var18.func_78374_a((double) var5, (double) var14, 0.0D, 0.0D, 0.0D);
      var18.func_78381_a();
    }

    this.func_77215_b(p_77211_1_, p_77211_2_);
    GL11.glEnable(3553);
    GL11.glShadeModel(7424);
    GL11.glEnable(3008);
    GL11.glDisable(3042);
  }
  public void func_70539_a(
      Tessellator p_70539_1_,
      float p_70539_2_,
      float p_70539_3_,
      float p_70539_4_,
      float p_70539_5_,
      float p_70539_6_,
      float p_70539_7_) {
    float var8 = ((float) this.field_94054_b + this.field_70548_b / 4.0F) / 16.0F;
    float var9 = var8 + 0.015609375F;
    float var10 = ((float) this.field_94055_c + this.field_70549_c / 4.0F) / 16.0F;
    float var11 = var10 + 0.015609375F;
    float var12 = 0.1F * this.field_70544_f;
    if (this.field_70550_a != null) {
      var8 = this.field_70550_a.func_94214_a((double) (this.field_70548_b / 4.0F * 16.0F));
      var9 = this.field_70550_a.func_94214_a((double) ((this.field_70548_b + 1.0F) / 4.0F * 16.0F));
      var10 = this.field_70550_a.func_94207_b((double) (this.field_70549_c / 4.0F * 16.0F));
      var11 =
          this.field_70550_a.func_94207_b((double) ((this.field_70549_c + 1.0F) / 4.0F * 16.0F));
    }

    float var13 =
        (float)
            (this.field_70169_q
                + (this.field_70165_t - this.field_70169_q) * (double) p_70539_2_
                - field_70556_an);
    float var14 =
        (float)
            (this.field_70167_r
                + (this.field_70163_u - this.field_70167_r) * (double) p_70539_2_
                - field_70554_ao);
    float var15 =
        (float)
            (this.field_70166_s
                + (this.field_70161_v - this.field_70166_s) * (double) p_70539_2_
                - field_70555_ap);
    float var16 = 1.0F;
    p_70539_1_.func_78386_a(
        var16 * this.field_70552_h, var16 * this.field_70553_i, var16 * this.field_70551_j);
    p_70539_1_.func_78374_a(
        (double) (var13 - p_70539_3_ * var12 - p_70539_6_ * var12),
        (double) (var14 - p_70539_4_ * var12),
        (double) (var15 - p_70539_5_ * var12 - p_70539_7_ * var12),
        (double) var8,
        (double) var11);
    p_70539_1_.func_78374_a(
        (double) (var13 - p_70539_3_ * var12 + p_70539_6_ * var12),
        (double) (var14 + p_70539_4_ * var12),
        (double) (var15 - p_70539_5_ * var12 + p_70539_7_ * var12),
        (double) var8,
        (double) var10);
    p_70539_1_.func_78374_a(
        (double) (var13 + p_70539_3_ * var12 + p_70539_6_ * var12),
        (double) (var14 + p_70539_4_ * var12),
        (double) (var15 + p_70539_5_ * var12 + p_70539_7_ * var12),
        (double) var9,
        (double) var10);
    p_70539_1_.func_78374_a(
        (double) (var13 + p_70539_3_ * var12 - p_70539_6_ * var12),
        (double) (var14 - p_70539_4_ * var12),
        (double) (var15 + p_70539_5_ * var12 - p_70539_7_ * var12),
        (double) var9,
        (double) var11);
  }
Beispiel #9
0
  private void func_77010_a(
      EntityPainting p_77010_1_, int p_77010_2_, int p_77010_3_, int p_77010_4_, int p_77010_5_) {
    float var6 = (float) (-p_77010_2_) / 2.0F;
    float var7 = (float) (-p_77010_3_) / 2.0F;
    float var8 = 0.5F;
    float var9 = 0.75F;
    float var10 = 0.8125F;
    float var11 = 0.0F;
    float var12 = 0.0625F;
    float var13 = 0.75F;
    float var14 = 0.8125F;
    float var15 = 0.001953125F;
    float var16 = 0.001953125F;
    float var17 = 0.7519531F;
    float var18 = 0.7519531F;
    float var19 = 0.0F;
    float var20 = 0.0625F;

    for (int var21 = 0; var21 < p_77010_2_ / 16; ++var21) {
      for (int var22 = 0; var22 < p_77010_3_ / 16; ++var22) {
        float var23 = var6 + (float) ((var21 + 1) * 16);
        float var24 = var6 + (float) (var21 * 16);
        float var25 = var7 + (float) ((var22 + 1) * 16);
        float var26 = var7 + (float) (var22 * 16);
        this.func_77008_a(p_77010_1_, (var23 + var24) / 2.0F, (var25 + var26) / 2.0F);
        float var27 = (float) (p_77010_4_ + p_77010_2_ - var21 * 16) / 256.0F;
        float var28 = (float) (p_77010_4_ + p_77010_2_ - (var21 + 1) * 16) / 256.0F;
        float var29 = (float) (p_77010_5_ + p_77010_3_ - var22 * 16) / 256.0F;
        float var30 = (float) (p_77010_5_ + p_77010_3_ - (var22 + 1) * 16) / 256.0F;
        Tessellator var31 = Tessellator.field_78398_a;
        var31.func_78382_b();
        var31.func_78375_b(0.0F, 0.0F, -1.0F);
        var31.func_78374_a(
            (double) var23, (double) var26, (double) (-var8), (double) var28, (double) var29);
        var31.func_78374_a(
            (double) var24, (double) var26, (double) (-var8), (double) var27, (double) var29);
        var31.func_78374_a(
            (double) var24, (double) var25, (double) (-var8), (double) var27, (double) var30);
        var31.func_78374_a(
            (double) var23, (double) var25, (double) (-var8), (double) var28, (double) var30);
        var31.func_78375_b(0.0F, 0.0F, 1.0F);
        var31.func_78374_a(
            (double) var23, (double) var25, (double) var8, (double) var9, (double) var11);
        var31.func_78374_a(
            (double) var24, (double) var25, (double) var8, (double) var10, (double) var11);
        var31.func_78374_a(
            (double) var24, (double) var26, (double) var8, (double) var10, (double) var12);
        var31.func_78374_a(
            (double) var23, (double) var26, (double) var8, (double) var9, (double) var12);
        var31.func_78375_b(0.0F, 1.0F, 0.0F);
        var31.func_78374_a(
            (double) var23, (double) var25, (double) (-var8), (double) var13, (double) var15);
        var31.func_78374_a(
            (double) var24, (double) var25, (double) (-var8), (double) var14, (double) var15);
        var31.func_78374_a(
            (double) var24, (double) var25, (double) var8, (double) var14, (double) var16);
        var31.func_78374_a(
            (double) var23, (double) var25, (double) var8, (double) var13, (double) var16);
        var31.func_78375_b(0.0F, -1.0F, 0.0F);
        var31.func_78374_a(
            (double) var23, (double) var26, (double) var8, (double) var13, (double) var15);
        var31.func_78374_a(
            (double) var24, (double) var26, (double) var8, (double) var14, (double) var15);
        var31.func_78374_a(
            (double) var24, (double) var26, (double) (-var8), (double) var14, (double) var16);
        var31.func_78374_a(
            (double) var23, (double) var26, (double) (-var8), (double) var13, (double) var16);
        var31.func_78375_b(-1.0F, 0.0F, 0.0F);
        var31.func_78374_a(
            (double) var23, (double) var25, (double) var8, (double) var18, (double) var19);
        var31.func_78374_a(
            (double) var23, (double) var26, (double) var8, (double) var18, (double) var20);
        var31.func_78374_a(
            (double) var23, (double) var26, (double) (-var8), (double) var17, (double) var20);
        var31.func_78374_a(
            (double) var23, (double) var25, (double) (-var8), (double) var17, (double) var19);
        var31.func_78375_b(1.0F, 0.0F, 0.0F);
        var31.func_78374_a(
            (double) var24, (double) var25, (double) (-var8), (double) var18, (double) var19);
        var31.func_78374_a(
            (double) var24, (double) var26, (double) (-var8), (double) var18, (double) var20);
        var31.func_78374_a(
            (double) var24, (double) var26, (double) var8, (double) var17, (double) var20);
        var31.func_78374_a(
            (double) var24, (double) var25, (double) var8, (double) var17, (double) var19);
        var31.func_78381_a();
      }
    }
  }
  public void func_78440_a(float p_78440_1_) {
    float f = field_78451_d + (field_78454_c - field_78451_d) * p_78440_1_;
    EntityClientPlayerMP entityclientplayermp = field_78455_a.field_71439_g;
    float f1 =
        ((EntityPlayer) (entityclientplayermp)).field_70127_C
            + (((EntityPlayer) (entityclientplayermp)).field_70125_A
                    - ((EntityPlayer) (entityclientplayermp)).field_70127_C)
                * p_78440_1_;
    GL11.glPushMatrix();
    GL11.glRotatef(f1, 1.0F, 0.0F, 0.0F);
    GL11.glRotatef(
        ((EntityPlayer) (entityclientplayermp)).field_70126_B
            + (((EntityPlayer) (entityclientplayermp)).field_70177_z
                    - ((EntityPlayer) (entityclientplayermp)).field_70126_B)
                * p_78440_1_,
        0.0F,
        1.0F,
        0.0F);
    RenderHelper.func_74519_b();
    GL11.glPopMatrix();
    if (entityclientplayermp instanceof EntityPlayerSP) {
      EntityClientPlayerMP entityclientplayermp1 = entityclientplayermp;
      float f2 =
          ((EntityPlayerSP) (entityclientplayermp1)).field_71164_i
              + (((EntityPlayerSP) (entityclientplayermp1)).field_71155_g
                      - ((EntityPlayerSP) (entityclientplayermp1)).field_71164_i)
                  * p_78440_1_;
      float f4 =
          ((EntityPlayerSP) (entityclientplayermp1)).field_71163_h
              + (((EntityPlayerSP) (entityclientplayermp1)).field_71154_f
                      - ((EntityPlayerSP) (entityclientplayermp1)).field_71163_h)
                  * p_78440_1_;
      GL11.glRotatef(
          (((EntityPlayer) (entityclientplayermp)).field_70125_A - f2) * 0.1F, 1.0F, 0.0F, 0.0F);
      GL11.glRotatef(
          (((EntityPlayer) (entityclientplayermp)).field_70177_z - f4) * 0.1F, 0.0F, 1.0F, 0.0F);
    }
    ItemStack itemstack = field_78453_b;
    float f3 =
        field_78455_a.field_71441_e.func_72801_o(
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70165_t),
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70163_u),
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70161_v));
    f3 = 1.0F;
    int i =
        field_78455_a.field_71441_e.func_72802_i(
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70165_t),
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70163_u),
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70161_v),
            0);
    int j = i % 0x10000;
    int k = i / 0x10000;
    OpenGlHelper.func_77475_a(OpenGlHelper.field_77476_b, (float) j / 1.0F, (float) k / 1.0F);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    if (itemstack != null) {
      int l = Item.field_77698_e[itemstack.field_77993_c].func_77620_a(itemstack.func_77960_j(), 0);
      float f8 = (float) (l >> 16 & 0xff) / 255F;
      float f13 = (float) (l >> 8 & 0xff) / 255F;
      float f19 = (float) (l & 0xff) / 255F;
      GL11.glColor4f(f3 * f8, f3 * f13, f3 * f19, 1.0F);
    } else {
      GL11.glColor4f(f3, f3, f3, 1.0F);
    }
    if (itemstack != null && itemstack.field_77993_c == Item.field_77744_bd.field_77779_bT) {
      GL11.glPushMatrix();
      float f5 = 0.8F;
      float f9 = entityclientplayermp.func_70678_g(p_78440_1_);
      float f14 = MathHelper.func_76126_a(f9 * 3.141593F);
      float f20 = MathHelper.func_76126_a(MathHelper.func_76129_c(f9) * 3.141593F);
      GL11.glTranslatef(
          -f20 * 0.4F,
          MathHelper.func_76126_a(MathHelper.func_76129_c(f9) * 3.141593F * 2.0F) * 0.2F,
          -f14 * 0.2F);
      f9 = (1.0F - f1 / 45F) + 0.1F;
      if (f9 < 0.0F) {
        f9 = 0.0F;
      }
      if (f9 > 1.0F) {
        f9 = 1.0F;
      }
      f9 = -MathHelper.func_76134_b(f9 * 3.141593F) * 0.5F + 0.5F;
      GL11.glTranslatef(0.0F, (0.0F * f5 - (1.0F - f) * 1.2F - f9 * 0.5F) + 0.04F, -0.9F * f5);
      GL11.glRotatef(90F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(f9 * -85F, 0.0F, 0.0F, 1.0F);
      GL11.glEnable(32826);
      GL11.glBindTexture(
          3553,
          field_78455_a.field_71446_o.func_78350_a(
              field_78455_a.field_71439_g.field_70120_cr,
              field_78455_a.field_71439_g.func_70073_O()));
      for (f14 = 0.0F; f14 < 2.0F; f14++) {
        f20 = f14 * 2.0F - 1.0F;
        GL11.glPushMatrix();
        GL11.glTranslatef(-0F, -0.6F, 1.1F * f20);
        GL11.glRotatef(-45F * f20, 1.0F, 0.0F, 0.0F);
        GL11.glRotatef(-90F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(59F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(-65F * f20, 0.0F, 1.0F, 0.0F);
        Render render = RenderManager.field_78727_a.func_78713_a(field_78455_a.field_71439_g);
        RenderPlayer renderplayer = (RenderPlayer) render;
        float f30 = 1.0F;
        GL11.glScalef(f30, f30, f30);
        renderplayer.func_77106_b();
        GL11.glPopMatrix();
      }

      f14 = entityclientplayermp.func_70678_g(p_78440_1_);
      f20 = MathHelper.func_76126_a(f14 * f14 * 3.141593F);
      float f25 = MathHelper.func_76126_a(MathHelper.func_76129_c(f14) * 3.141593F);
      GL11.glRotatef(-f20 * 20F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-f25 * 20F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(-f25 * 80F, 1.0F, 0.0F, 0.0F);
      float f28 = 0.38F;
      GL11.glScalef(f28, f28, f28);
      GL11.glRotatef(90F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
      GL11.glTranslatef(-1F, -1F, 0.0F);
      float f31 = 0.015625F;
      GL11.glScalef(f31, f31, f31);
      field_78455_a.field_71446_o.func_78342_b(
          field_78455_a.field_71446_o.func_78341_b("/misc/mapbg.png"));
      Tessellator tessellator = Tessellator.field_78398_a;
      GL11.glNormal3f(0.0F, 0.0F, -1F);
      tessellator.func_78382_b();
      byte byte0 = 7;
      tessellator.func_78374_a(0 - byte0, 128 + byte0, 0.0D, 0.0D, 1.0D);
      tessellator.func_78374_a(128 + byte0, 128 + byte0, 0.0D, 1.0D, 1.0D);
      tessellator.func_78374_a(128 + byte0, 0 - byte0, 0.0D, 1.0D, 0.0D);
      tessellator.func_78374_a(0 - byte0, 0 - byte0, 0.0D, 0.0D, 0.0D);
      tessellator.func_78381_a();
      MapData mapdata = Item.field_77744_bd.func_77873_a(itemstack, field_78455_a.field_71441_e);
      field_78449_f.func_78319_a(field_78455_a.field_71439_g, field_78455_a.field_71446_o, mapdata);
      GL11.glPopMatrix();
    } else if (itemstack != null) {
      GL11.glPushMatrix();
      float f6 = 0.8F;
      if (entityclientplayermp.func_71052_bv() > 0) {
        EnumAction enumaction = itemstack.func_77975_n();
        if (enumaction == EnumAction.eat || enumaction == EnumAction.drink) {
          float f15 = ((float) entityclientplayermp.func_71052_bv() - p_78440_1_) + 1.0F;
          float f21 = 1.0F - f15 / (float) itemstack.func_77988_m();
          float f26 = 1.0F - f21;
          f26 = f26 * f26 * f26;
          f26 = f26 * f26 * f26;
          f26 = f26 * f26 * f26;
          float f29 = 1.0F - f26;
          GL11.glTranslatef(
              0.0F,
              MathHelper.func_76135_e(MathHelper.func_76134_b((f15 / 4F) * 3.141593F) * 0.1F)
                  * (float) ((double) f21 > 0.20000000000000001D ? 1 : 0),
              0.0F);
          GL11.glTranslatef(f29 * 0.6F, -f29 * 0.5F, 0.0F);
          GL11.glRotatef(f29 * 90F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(f29 * 10F, 1.0F, 0.0F, 0.0F);
          GL11.glRotatef(f29 * 30F, 0.0F, 0.0F, 1.0F);
        }
      } else {
        float f10 = entityclientplayermp.func_70678_g(p_78440_1_);
        float f16 = MathHelper.func_76126_a(f10 * 3.141593F);
        float f22 = MathHelper.func_76126_a(MathHelper.func_76129_c(f10) * 3.141593F);
        GL11.glTranslatef(
            -f22 * 0.4F,
            MathHelper.func_76126_a(MathHelper.func_76129_c(f10) * 3.141593F * 2.0F) * 0.2F,
            -f16 * 0.2F);
      }
      GL11.glTranslatef(0.7F * f6, -0.65F * f6 - (1.0F - f) * 0.6F, -0.9F * f6);
      GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F);
      GL11.glEnable(32826);
      float f11 = entityclientplayermp.func_70678_g(p_78440_1_);
      float f17 = MathHelper.func_76126_a(f11 * f11 * 3.141593F);
      float f23 = MathHelper.func_76126_a(MathHelper.func_76129_c(f11) * 3.141593F);
      GL11.glRotatef(-f17 * 20F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-f23 * 20F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(-f23 * 80F, 1.0F, 0.0F, 0.0F);
      float f27 = 0.4F;
      GL11.glScalef(f27, f27, f27);
      if (entityclientplayermp.func_71052_bv() > 0) {
        EnumAction enumaction1 = itemstack.func_77975_n();
        if (enumaction1 == EnumAction.block) {
          GL11.glTranslatef(-0.5F, 0.2F, 0.0F);
          GL11.glRotatef(30F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(-80F, 1.0F, 0.0F, 0.0F);
          GL11.glRotatef(60F, 0.0F, 1.0F, 0.0F);
        } else if (enumaction1 == EnumAction.bow) {
          GL11.glRotatef(-18F, 0.0F, 0.0F, 1.0F);
          GL11.glRotatef(-12F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(-8F, 1.0F, 0.0F, 0.0F);
          GL11.glTranslatef(-0.9F, 0.2F, 0.0F);
          float f32 =
              (float) itemstack.func_77988_m()
                  - (((float) entityclientplayermp.func_71052_bv() - p_78440_1_) + 1.0F);
          float f35 = f32 / 20F;
          f35 = (f35 * f35 + f35 * 2.0F) / 3F;
          if (f35 > 1.0F) {
            f35 = 1.0F;
          }
          if (f35 > 0.1F) {
            GL11.glTranslatef(
                0.0F, MathHelper.func_76126_a((f32 - 0.1F) * 1.3F) * 0.01F * (f35 - 0.1F), 0.0F);
          }
          GL11.glTranslatef(0.0F, 0.0F, f35 * 0.1F);
          GL11.glRotatef(-335F, 0.0F, 0.0F, 1.0F);
          GL11.glRotatef(-50F, 0.0F, 1.0F, 0.0F);
          GL11.glTranslatef(0.0F, 0.5F, 0.0F);
          float f37 = 1.0F + f35 * 0.2F;
          GL11.glScalef(1.0F, 1.0F, f37);
          GL11.glTranslatef(0.0F, -0.5F, 0.0F);
          GL11.glRotatef(50F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(335F, 0.0F, 0.0F, 1.0F);
        }
      }
      if (itemstack.func_77973_b().func_77629_n_()) {
        GL11.glRotatef(180F, 0.0F, 1.0F, 0.0F);
      }
      if (itemstack.func_77973_b().func_77623_v()) {
        func_78443_a(entityclientplayermp, itemstack, 0);
        int i1 =
            Item.field_77698_e[itemstack.field_77993_c].func_77620_a(itemstack.func_77960_j(), 1);
        float f33 = (float) (i1 >> 16 & 0xff) / 255F;
        float f36 = (float) (i1 >> 8 & 0xff) / 255F;
        float f38 = (float) (i1 & 0xff) / 255F;
        GL11.glColor4f(f3 * f33, f3 * f36, f3 * f38, 1.0F);
        func_78443_a(entityclientplayermp, itemstack, 1);
      } else {
        func_78443_a(entityclientplayermp, itemstack, 0);
      }
      GL11.glPopMatrix();
    } else {
      GL11.glPushMatrix();
      float f7 = 0.8F;
      float f12 = entityclientplayermp.func_70678_g(p_78440_1_);
      float f18 = MathHelper.func_76126_a(f12 * 3.141593F);
      float f24 = MathHelper.func_76126_a(MathHelper.func_76129_c(f12) * 3.141593F);
      GL11.glTranslatef(
          -f24 * 0.3F,
          MathHelper.func_76126_a(MathHelper.func_76129_c(f12) * 3.141593F * 2.0F) * 0.4F,
          -f18 * 0.4F);
      GL11.glTranslatef(0.8F * f7, -0.75F * f7 - (1.0F - f) * 0.6F, -0.9F * f7);
      GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F);
      GL11.glEnable(32826);
      f12 = entityclientplayermp.func_70678_g(p_78440_1_);
      f18 = MathHelper.func_76126_a(f12 * f12 * 3.141593F);
      f24 = MathHelper.func_76126_a(MathHelper.func_76129_c(f12) * 3.141593F);
      GL11.glRotatef(f24 * 70F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-f18 * 20F, 0.0F, 0.0F, 1.0F);
      GL11.glBindTexture(
          3553,
          field_78455_a.field_71446_o.func_78350_a(
              field_78455_a.field_71439_g.field_70120_cr,
              field_78455_a.field_71439_g.func_70073_O()));
      GL11.glTranslatef(-1F, 3.6F, 3.5F);
      GL11.glRotatef(120F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(200F, 1.0F, 0.0F, 0.0F);
      GL11.glRotatef(-135F, 0.0F, 1.0F, 0.0F);
      GL11.glScalef(1.0F, 1.0F, 1.0F);
      GL11.glTranslatef(5.6F, 0.0F, 0.0F);
      Render render1 = RenderManager.field_78727_a.func_78713_a(field_78455_a.field_71439_g);
      RenderPlayer renderplayer1 = (RenderPlayer) render1;
      float f34 = 1.0F;
      GL11.glScalef(f34, f34, f34);
      renderplayer1.func_77106_b();
      GL11.glPopMatrix();
    }
    GL11.glDisable(32826);
    RenderHelper.func_74518_a();
  }
  private void func_78439_a(
      Tessellator p_78439_1_,
      float p_78439_2_,
      float p_78439_3_,
      float p_78439_4_,
      float p_78439_5_) {
    float f = 1.0F;
    float f1 = 0.0625F;
    p_78439_1_.func_78382_b();
    p_78439_1_.func_78375_b(0.0F, 0.0F, 1.0F);
    p_78439_1_.func_78374_a(0.0D, 0.0D, 0.0D, p_78439_2_, p_78439_5_);
    p_78439_1_.func_78374_a(f, 0.0D, 0.0D, p_78439_4_, p_78439_5_);
    p_78439_1_.func_78374_a(f, 1.0D, 0.0D, p_78439_4_, p_78439_3_);
    p_78439_1_.func_78374_a(0.0D, 1.0D, 0.0D, p_78439_2_, p_78439_3_);
    p_78439_1_.func_78381_a();
    p_78439_1_.func_78382_b();
    p_78439_1_.func_78375_b(0.0F, 0.0F, -1F);
    p_78439_1_.func_78374_a(0.0D, 1.0D, 0.0F - f1, p_78439_2_, p_78439_3_);
    p_78439_1_.func_78374_a(f, 1.0D, 0.0F - f1, p_78439_4_, p_78439_3_);
    p_78439_1_.func_78374_a(f, 0.0D, 0.0F - f1, p_78439_4_, p_78439_5_);
    p_78439_1_.func_78374_a(0.0D, 0.0D, 0.0F - f1, p_78439_2_, p_78439_5_);
    p_78439_1_.func_78381_a();
    p_78439_1_.func_78382_b();
    p_78439_1_.func_78375_b(-1F, 0.0F, 0.0F);
    for (int i = 0; i < 16; i++) {
      float f2 = (float) i / 16F;
      float f6 = (p_78439_2_ + (p_78439_4_ - p_78439_2_) * f2) - 0.001953125F;
      float f10 = f * f2;
      p_78439_1_.func_78374_a(f10, 0.0D, 0.0F - f1, f6, p_78439_5_);
      p_78439_1_.func_78374_a(f10, 0.0D, 0.0D, f6, p_78439_5_);
      p_78439_1_.func_78374_a(f10, 1.0D, 0.0D, f6, p_78439_3_);
      p_78439_1_.func_78374_a(f10, 1.0D, 0.0F - f1, f6, p_78439_3_);
    }

    p_78439_1_.func_78381_a();
    p_78439_1_.func_78382_b();
    p_78439_1_.func_78375_b(1.0F, 0.0F, 0.0F);
    for (int j = 0; j < 16; j++) {
      float f3 = (float) j / 16F;
      float f7 = (p_78439_2_ + (p_78439_4_ - p_78439_2_) * f3) - 0.001953125F;
      float f11 = f * f3 + 0.0625F;
      p_78439_1_.func_78374_a(f11, 1.0D, 0.0F - f1, f7, p_78439_3_);
      p_78439_1_.func_78374_a(f11, 1.0D, 0.0D, f7, p_78439_3_);
      p_78439_1_.func_78374_a(f11, 0.0D, 0.0D, f7, p_78439_5_);
      p_78439_1_.func_78374_a(f11, 0.0D, 0.0F - f1, f7, p_78439_5_);
    }

    p_78439_1_.func_78381_a();
    p_78439_1_.func_78382_b();
    p_78439_1_.func_78375_b(0.0F, 1.0F, 0.0F);
    for (int k = 0; k < 16; k++) {
      float f4 = (float) k / 16F;
      float f8 = (p_78439_5_ + (p_78439_3_ - p_78439_5_) * f4) - 0.001953125F;
      float f12 = f * f4 + 0.0625F;
      p_78439_1_.func_78374_a(0.0D, f12, 0.0D, p_78439_2_, f8);
      p_78439_1_.func_78374_a(f, f12, 0.0D, p_78439_4_, f8);
      p_78439_1_.func_78374_a(f, f12, 0.0F - f1, p_78439_4_, f8);
      p_78439_1_.func_78374_a(0.0D, f12, 0.0F - f1, p_78439_2_, f8);
    }

    p_78439_1_.func_78381_a();
    p_78439_1_.func_78382_b();
    p_78439_1_.func_78375_b(0.0F, -1F, 0.0F);
    for (int l = 0; l < 16; l++) {
      float f5 = (float) l / 16F;
      float f9 = (p_78439_5_ + (p_78439_3_ - p_78439_5_) * f5) - 0.001953125F;
      float f13 = f * f5;
      p_78439_1_.func_78374_a(f, f13, 0.0D, p_78439_4_, f9);
      p_78439_1_.func_78374_a(0.0D, f13, 0.0D, p_78439_2_, f9);
      p_78439_1_.func_78374_a(0.0D, f13, 0.0F - f1, p_78439_2_, f9);
      p_78439_1_.func_78374_a(f, f13, 0.0F - f1, p_78439_4_, f9);
    }

    p_78439_1_.func_78381_a();
  }
Beispiel #12
0
  public void func_78319_a(EntityPlayer p_78319_1_, RenderEngine p_78319_2_, MapData p_78319_3_) {
    for (int var4 = 0; var4 < 16384; ++var4) {
      byte var5 = p_78319_3_.field_76198_e[var4];
      if (var5 / 4 == 0) {
        this.field_78323_a[var4] = (var4 + var4 / 128 & 1) * 8 + 16 << 24;
      } else {
        int var6 = MapColor.field_76281_a[var5 / 4].field_76291_p;
        int var7 = var5 & 3;
        short var8 = 220;
        if (var7 == 2) {
          var8 = 255;
        }

        if (var7 == 0) {
          var8 = 180;
        }

        int var9 = (var6 >> 16 & 255) * var8 / 255;
        int var10 = (var6 >> 8 & 255) * var8 / 255;
        int var11 = (var6 & 255) * var8 / 255;
        if (this.field_78322_c.field_74337_g) {
          int var12 = (var9 * 30 + var10 * 59 + var11 * 11) / 100;
          int var13 = (var9 * 30 + var10 * 70) / 100;
          int var14 = (var9 * 30 + var11 * 70) / 100;
          var9 = var12;
          var10 = var13;
          var11 = var14;
        }

        this.field_78323_a[var4] = -16777216 | var9 << 16 | var10 << 8 | var11;
      }
    }

    p_78319_2_.func_78349_a(this.field_78323_a, 128, 128, this.field_78321_b);
    byte var15 = 0;
    byte var16 = 0;
    Tessellator var17 = Tessellator.field_78398_a;
    float var18 = 0.0F;
    GL11.glBindTexture(3553, this.field_78321_b);
    GL11.glEnable(3042);
    GL11.glBlendFunc(1, 771);
    GL11.glDisable(3008);
    var17.func_78382_b();
    var17.func_78374_a(
        (double) ((float) (var15 + 0) + var18),
        (double) ((float) (var16 + 128) - var18),
        -0.009999999776482582D,
        0.0D,
        1.0D);
    var17.func_78374_a(
        (double) ((float) (var15 + 128) - var18),
        (double) ((float) (var16 + 128) - var18),
        -0.009999999776482582D,
        1.0D,
        1.0D);
    var17.func_78374_a(
        (double) ((float) (var15 + 128) - var18),
        (double) ((float) (var16 + 0) + var18),
        -0.009999999776482582D,
        1.0D,
        0.0D);
    var17.func_78374_a(
        (double) ((float) (var15 + 0) + var18),
        (double) ((float) (var16 + 0) + var18),
        -0.009999999776482582D,
        0.0D,
        0.0D);
    var17.func_78381_a();
    GL11.glEnable(3008);
    GL11.glDisable(3042);
    p_78319_2_.func_78342_b(p_78319_2_.func_78341_b("/misc/mapicons.png"));
    Iterator var19 = p_78319_3_.field_76203_h.iterator();

    while (var19.hasNext()) {
      MapCoord var20 = (MapCoord) var19.next();
      GL11.glPushMatrix();
      GL11.glTranslatef(
          (float) var15 + (float) var20.field_76214_b / 2.0F + 64.0F,
          (float) var16 + (float) var20.field_76215_c / 2.0F + 64.0F,
          -0.02F);
      GL11.glRotatef((float) (var20.field_76212_d * 360) / 16.0F, 0.0F, 0.0F, 1.0F);
      GL11.glScalef(4.0F, 4.0F, 3.0F);
      GL11.glTranslatef(-0.125F, 0.125F, 0.0F);
      float var21 = (float) (var20.field_76216_a % 4 + 0) / 4.0F;
      float var23 = (float) (var20.field_76216_a / 4 + 0) / 4.0F;
      float var22 = (float) (var20.field_76216_a % 4 + 1) / 4.0F;
      float var24 = (float) (var20.field_76216_a / 4 + 1) / 4.0F;
      var17.func_78382_b();
      var17.func_78374_a(-1.0D, 1.0D, 0.0D, (double) var21, (double) var23);
      var17.func_78374_a(1.0D, 1.0D, 0.0D, (double) var22, (double) var23);
      var17.func_78374_a(1.0D, -1.0D, 0.0D, (double) var22, (double) var24);
      var17.func_78374_a(-1.0D, -1.0D, 0.0D, (double) var21, (double) var24);
      var17.func_78381_a();
      GL11.glPopMatrix();
    }

    GL11.glPushMatrix();
    GL11.glTranslatef(0.0F, 0.0F, -0.04F);
    GL11.glScalef(1.0F, 1.0F, 1.0F);
    this.field_78320_d.func_78276_b(p_78319_3_.field_76190_i, var15, var16, -16777216);
    GL11.glPopMatrix();
  }