protected void func_74190_a(String p_74190_1_, int p_74190_2_, int p_74190_3_) {
   GL11.glDisable('\u803a');
   RenderHelper.func_74518_a();
   GL11.glDisable(2896);
   GL11.glDisable(2929);
   int var4 = this.field_73886_k.func_78256_a(p_74190_1_);
   int var5 = p_74190_2_ + 12;
   int var6 = p_74190_3_ - 12;
   byte var8 = 8;
   this.field_73735_i = 300.0F;
   field_74196_a.field_77023_b = 300.0F;
   int var9 = -267386864;
   this.func_73733_a(var5 - 3, var6 - 4, var5 + var4 + 3, var6 - 3, var9, var9);
   this.func_73733_a(var5 - 3, var6 + var8 + 3, var5 + var4 + 3, var6 + var8 + 4, var9, var9);
   this.func_73733_a(var5 - 3, var6 - 3, var5 + var4 + 3, var6 + var8 + 3, var9, var9);
   this.func_73733_a(var5 - 4, var6 - 3, var5 - 3, var6 + var8 + 3, var9, var9);
   this.func_73733_a(var5 + var4 + 3, var6 - 3, var5 + var4 + 4, var6 + var8 + 3, var9, var9);
   int var10 = 1347420415;
   int var11 = (var10 & 16711422) >> 1 | var10 & -16777216;
   this.func_73733_a(var5 - 3, var6 - 3 + 1, var5 - 3 + 1, var6 + var8 + 3 - 1, var10, var11);
   this.func_73733_a(
       var5 + var4 + 2, var6 - 3 + 1, var5 + var4 + 3, var6 + var8 + 3 - 1, var10, var11);
   this.func_73733_a(var5 - 3, var6 - 3, var5 + var4 + 3, var6 - 3 + 1, var10, var10);
   this.func_73733_a(var5 - 3, var6 + var8 + 2, var5 + var4 + 3, var6 + var8 + 3, var11, var11);
   this.field_73886_k.func_78261_a(p_74190_1_, var5, var6, -1);
   this.field_73735_i = 0.0F;
   field_74196_a.field_77023_b = 0.0F;
   GL11.glEnable(2896);
   GL11.glEnable(2929);
   RenderHelper.func_74519_b();
   GL11.glEnable('\u803a');
 }
  public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
    this.func_73873_v_();
    int var4 = this.field_74198_m;
    int var5 = this.field_74197_n;
    this.func_74185_a(p_73863_3_, p_73863_1_, p_73863_2_);
    GL11.glDisable('\u803a');
    RenderHelper.func_74518_a();
    GL11.glDisable(2896);
    GL11.glDisable(2929);
    super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
    RenderHelper.func_74520_c();
    GL11.glPushMatrix();
    GL11.glTranslatef((float) var4, (float) var5, 0.0F);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    GL11.glEnable('\u803a');
    this.field_82320_o = null;
    short var6 = 240;
    short var7 = 240;
    OpenGlHelper.func_77475_a(OpenGlHelper.field_77476_b, (float) var6 / 1.0F, (float) var7 / 1.0F);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);

    int var9;
    for (int var13 = 0; var13 < this.field_74193_d.field_75151_b.size(); ++var13) {
      Slot var14 = (Slot) this.field_74193_d.field_75151_b.get(var13);
      this.func_74192_a(var14);
      if (this.func_74186_a(var14, p_73863_1_, p_73863_2_)) {
        this.field_82320_o = var14;
        GL11.glDisable(2896);
        GL11.glDisable(2929);
        int var8 = var14.field_75223_e;
        var9 = var14.field_75221_f;
        this.func_73733_a(var8, var9, var8 + 16, var9 + 16, -2130706433, -2130706433);
        GL11.glEnable(2896);
        GL11.glEnable(2929);
      }
    }

    this.func_74189_g(p_73863_1_, p_73863_2_);
    InventoryPlayer var15 = this.field_73882_e.field_71439_g.field_71071_by;
    ItemStack var16 = this.field_85050_q == null ? var15.func_70445_o() : this.field_85050_q;
    if (var16 != null) {
      byte var18 = 8;
      var9 = this.field_85050_q == null ? 8 : 16;
      if (this.field_85050_q != null && this.field_90018_r) {
        var16 = var16.func_77946_l();
        var16.field_77994_a = MathHelper.func_76123_f((float) var16.field_77994_a / 2.0F);
      }

      this.func_85044_b(var16, p_73863_1_ - var4 - var18, p_73863_2_ - var5 - var9);
    }

    if (this.field_85045_v != null) {
      float var17 = (float) (Minecraft.func_71386_F() - this.field_85046_u) / 100.0F;
      if (var17 >= 1.0F) {
        var17 = 1.0F;
        this.field_85045_v = null;
      }

      var9 = this.field_85047_t.field_75223_e - this.field_85049_r;
      int var10 = this.field_85047_t.field_75221_f - this.field_85048_s;
      int var11 = this.field_85049_r + (int) ((float) var9 * var17);
      int var12 = this.field_85048_s + (int) ((float) var10 * var17);
      this.func_85044_b(this.field_85045_v, var11, var12);
    }

    if (var15.func_70445_o() == null
        && this.field_82320_o != null
        && this.field_82320_o.func_75216_d()) {
      ItemStack var19 = this.field_82320_o.func_75211_c();
      this.func_74184_a(var19, p_73863_1_ - var4 + 8, p_73863_2_ - var5 + 8);
    }

    GL11.glPopMatrix();
    GL11.glEnable(2896);
    GL11.glEnable(2929);
    RenderHelper.func_74519_b();
  }
Exemplo n.º 3
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();
  }
Exemplo n.º 4
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();
    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();
  }