protected void func_73879_b(int p_73879_1_, int p_73879_2_, int p_73879_3_) {
    if (this.field_85051_p != null && this.field_73882_e.field_71474_y.field_85185_A) {
      if (p_73879_3_ == 0 || p_73879_3_ == 1) {
        Slot var4 = this.func_74187_b(p_73879_1_, p_73879_2_);
        int var5 = this.field_74198_m;
        int var6 = this.field_74197_n;
        boolean var7 =
            p_73879_1_ < var5
                || p_73879_2_ < var6
                || p_73879_1_ >= var5 + this.field_74194_b
                || p_73879_2_ >= var6 + this.field_74195_c;
        int var8 = -1;
        if (var4 != null) {
          var8 = var4.field_75222_d;
        }

        if (var7) {
          var8 = -999;
        }

        if (this.field_85050_q == null && var4 != this.field_85051_p) {
          this.field_85050_q = this.field_85051_p.func_75211_c();
        }

        boolean var9 = this.func_92031_b(var4);
        if (var8 != -1 && this.field_85050_q != null && var9) {
          this.func_74191_a(this.field_85051_p, this.field_85051_p.field_75222_d, p_73879_3_, 0);
          this.func_74191_a(var4, var8, 0, 0);
          if (this.field_73882_e.field_71439_g.field_71071_by.func_70445_o() != null) {
            this.func_74191_a(this.field_85051_p, this.field_85051_p.field_75222_d, p_73879_3_, 0);
            this.field_85049_r = p_73879_1_ - var5;
            this.field_85048_s = p_73879_2_ - var6;
            this.field_85047_t = this.field_85051_p;
            this.field_85045_v = this.field_85050_q;
            this.field_85046_u = Minecraft.func_71386_F();
          } else {
            this.field_85045_v = null;
          }
        } else if (this.field_85050_q != null) {
          this.field_85049_r = p_73879_1_ - var5;
          this.field_85048_s = p_73879_2_ - var6;
          this.field_85047_t = this.field_85051_p;
          this.field_85045_v = this.field_85050_q;
          this.field_85046_u = Minecraft.func_71386_F();
        }

        this.field_85050_q = null;
        this.field_85051_p = null;
      }
    }
  }
예제 #2
0
 public void func_73848_b(Achievement p_73848_1_) {
   this.field_73852_d = StatCollector.func_74838_a(p_73848_1_.func_75970_i());
   this.field_73853_e = p_73848_1_.func_75989_e();
   this.field_73851_g = Minecraft.func_71386_F() - 2500L;
   this.field_73850_f = p_73848_1_;
   this.field_73857_j = true;
 }
 protected void func_85041_a(int p_85041_1_, int p_85041_2_, int p_85041_3_, long p_85041_4_) {
   if (this.field_85051_p != null && this.field_73882_e.field_71474_y.field_85185_A) {
     if (p_85041_3_ == 0 || p_85041_3_ == 1) {
       Slot var6 = this.func_74187_b(p_85041_1_, p_85041_2_);
       if (this.field_85050_q == null) {
         if (var6 != this.field_85051_p) {
           this.field_85050_q = this.field_85051_p.func_75211_c().func_77946_l();
         }
       } else if (this.field_85050_q.field_77994_a > 1
           && var6 != null
           && this.func_92031_b(var6)) {
         long var7 = Minecraft.func_71386_F();
         if (this.field_92033_y == var6) {
           if (var7 - this.field_92032_z > 500L) {
             this.func_74191_a(this.field_85051_p, this.field_85051_p.field_75222_d, 0, 0);
             this.func_74191_a(var6, var6.field_75222_d, 1, 0);
             this.func_74191_a(this.field_85051_p, this.field_85051_p.field_75222_d, 0, 0);
             this.field_92032_z = var7 + 750L;
             --this.field_85050_q.field_77994_a;
           }
         } else {
           this.field_92033_y = var6;
           this.field_92032_z = var7;
         }
       }
     }
   }
 }
예제 #4
0
 public void func_73846_a(Achievement p_73846_1_) {
   this.field_73852_d = StatCollector.func_74838_a("achievement.get");
   this.field_73853_e = StatCollector.func_74838_a(p_73846_1_.func_75970_i());
   this.field_73851_g = Minecraft.func_71386_F();
   this.field_73850_f = p_73846_1_;
   this.field_73857_j = false;
 }
예제 #5
0
  public void func_73847_a() {
    if (this.field_73850_f != null && this.field_73851_g != 0L) {
      double var1 = (double) (Minecraft.func_71386_F() - this.field_73851_g) / 3000.0D;
      if (!this.field_73857_j && (var1 < 0.0D || var1 > 1.0D)) {
        this.field_73851_g = 0L;
      } else {
        this.func_73849_b();
        GL11.glDisable(2929);
        GL11.glDepthMask(false);
        double var3 = var1 * 2.0D;
        if (var3 > 1.0D) {
          var3 = 2.0D - var3;
        }

        var3 *= 4.0D;
        var3 = 1.0D - var3;
        if (var3 < 0.0D) {
          var3 = 0.0D;
        }

        var3 *= var3;
        var3 *= var3;
        int var5 = this.field_73854_b - 160;
        int var6 = 0 - (int) (var3 * 36.0D);
        int var7 = this.field_73856_a.field_71446_o.func_78341_b("/achievement/bg.png");
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        GL11.glEnable(3553);
        GL11.glBindTexture(3553, var7);
        GL11.glDisable(2896);
        this.func_73729_b(var5, var6, 96, 202, 160, 32);
        if (this.field_73857_j) {
          this.field_73856_a.field_71466_p.func_78279_b(
              this.field_73853_e, var5 + 30, var6 + 7, 120, -1);
        } else {
          this.field_73856_a.field_71466_p.func_78276_b(
              this.field_73852_d, var5 + 30, var6 + 7, -256);
          this.field_73856_a.field_71466_p.func_78276_b(
              this.field_73853_e, var5 + 30, var6 + 18, -1);
        }

        RenderHelper.func_74520_c();
        GL11.glDisable(2896);
        GL11.glEnable('\u803a');
        GL11.glEnable(2903);
        GL11.glEnable(2896);
        this.field_73858_h.func_77015_a(
            this.field_73856_a.field_71466_p,
            this.field_73856_a.field_71446_o,
            this.field_73850_f.field_75990_d,
            var5 + 8,
            var6 + 8);
        GL11.glDisable(2896);
        GL11.glDepthMask(true);
        GL11.glEnable(2929);
      }
    }
  }
예제 #6
0
  public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
    this.func_73971_c(p_73863_1_, p_73863_2_, p_73863_3_);
    Tessellator var4 = Tessellator.field_78398_a;
    short var5 = 274;
    int var6 = this.field_73880_f / 2 - var5 / 2;
    byte var7 = 30;
    this.func_73733_a(0, 0, this.field_73880_f, this.field_73881_g, -2130706433, 16777215);
    this.func_73733_a(0, 0, this.field_73880_f, this.field_73881_g, 0, Integer.MIN_VALUE);
    this.field_73882_e.func_110434_K().func_110577_a(field_110352_y);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    if ((double) this.field_73974_b < 1.0E-4D) {
      this.func_73729_b(var6 + 0, var7 + 0, 0, 0, 99, 44);
      this.func_73729_b(var6 + 99, var7 + 0, 129, 0, 27, 44);
      this.func_73729_b(var6 + 99 + 26, var7 + 0, 126, 0, 3, 44);
      this.func_73729_b(var6 + 99 + 26 + 3, var7 + 0, 99, 0, 26, 44);
      this.func_73729_b(var6 + 155, var7 + 0, 0, 45, 155, 44);
    } else {
      this.func_73729_b(var6 + 0, var7 + 0, 0, 0, 155, 44);
      this.func_73729_b(var6 + 155, var7 + 0, 0, 45, 155, 44);
    }

    var4.func_78378_d(16777215);
    GL11.glPushMatrix();
    GL11.glTranslatef((float) (this.field_73880_f / 2 + 90), 70.0F, 0.0F);
    GL11.glRotatef(-20.0F, 0.0F, 0.0F, 1.0F);
    float var8 =
        1.8F
            - MathHelper.func_76135_e(
                MathHelper.func_76126_a(
                        (float) (Minecraft.func_71386_F() % 1000L) / 1000.0F * 3.1415927F * 2.0F)
                    * 0.1F);
    var8 = var8 * 100.0F / (float) (this.field_73886_k.func_78256_a(this.field_73975_c) + 32);
    GL11.glScalef(var8, var8, var8);
    this.func_73732_a(this.field_73886_k, this.field_73975_c, 0, -8, 16776960);
    GL11.glPopMatrix();
    String var9 = "Minecraft 1.6.2";
    if (this.field_73882_e.func_71355_q()) {
      var9 = var9 + " Demo";
    }

    this.func_73731_b(this.field_73886_k, var9, 2, this.field_73881_g - 10, 16777215);
    String var10 = "Copyright Mojang AB. Do not distribute!";
    this.func_73731_b(
        this.field_73886_k,
        var10,
        this.field_73880_f - this.field_73886_k.func_78256_a(var10) - 2,
        this.field_73881_g - 10,
        16777215);
    if (this.field_92025_p != null && this.field_92025_p.length() > 0) {
      func_73734_a(
          this.field_92022_t - 2,
          this.field_92021_u - 2,
          this.field_92020_v + 2,
          this.field_92019_w - 1,
          1428160512);
      this.func_73731_b(
          this.field_73886_k, this.field_92025_p, this.field_92022_t, this.field_92021_u, 16777215);
      this.func_73731_b(
          this.field_73886_k,
          field_96138_a,
          (this.field_73880_f - this.field_92024_r) / 2,
          ((GuiButton) this.field_73887_h.get(0)).field_73743_d - 12,
          16777215);
    }

    super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
  }
예제 #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);
  }
예제 #8
0
 public static long currentTimeMillis() {
   return Minecraft.func_71386_F();
 }
  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();
  }
예제 #10
0
  public void func_78443_a(EntityLiving p_78443_1_, ItemStack p_78443_2_, int p_78443_3_) {
    GL11.glPushMatrix();
    Block var4 = Block.field_71973_m[p_78443_2_.field_77993_c];
    if (var4 != null && RenderBlocks.func_78597_b(var4.func_71857_b())) {
      GL11.glBindTexture(3553, this.field_78455_a.field_71446_o.func_78341_b("/terrain.png"));
      this.field_78452_e.func_78600_a(var4, p_78443_2_.func_77960_j(), 1.0F);
    } else {
      if (var4 != null) {
        GL11.glBindTexture(3553, this.field_78455_a.field_71446_o.func_78341_b("/terrain.png"));
      } else {
        GL11.glBindTexture(3553, this.field_78455_a.field_71446_o.func_78341_b("/gui/items.png"));
      }

      Tessellator var5 = Tessellator.field_78398_a;
      int var6 = p_78443_1_.func_70620_b(p_78443_2_, p_78443_3_);
      float var7 = ((float) (var6 % 16 * 16) + 0.0F) / 256.0F;
      float var8 = ((float) (var6 % 16 * 16) + 15.99F) / 256.0F;
      float var9 = ((float) (var6 / 16 * 16) + 0.0F) / 256.0F;
      float var10 = ((float) (var6 / 16 * 16) + 15.99F) / 256.0F;
      float var11 = 0.0F;
      float var12 = 0.3F;
      GL11.glEnable('\u803a');
      GL11.glTranslatef(-var11, -var12, 0.0F);
      float var13 = 1.5F;
      GL11.glScalef(var13, var13, var13);
      GL11.glRotatef(50.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(335.0F, 0.0F, 0.0F, 1.0F);
      GL11.glTranslatef(-0.9375F, -0.0625F, 0.0F);
      func_78439_a(var5, var8, var9, var7, var10, 0.0625F);
      if (p_78443_2_ != null && p_78443_2_.func_77962_s() && p_78443_3_ == 0) {
        GL11.glDepthFunc(514);
        GL11.glDisable(2896);
        this.field_78455_a.field_71446_o.func_78342_b(
            this.field_78455_a.field_71446_o.func_78341_b("%blur%/misc/glint.png"));
        GL11.glEnable(3042);
        GL11.glBlendFunc(768, 1);
        float var14 = 0.76F;
        GL11.glColor4f(0.5F * var14, 0.25F * var14, 0.8F * var14, 1.0F);
        GL11.glMatrixMode(5890);
        GL11.glPushMatrix();
        float var15 = 0.125F;
        GL11.glScalef(var15, var15, var15);
        float var16 = (float) (Minecraft.func_71386_F() % 3000L) / 3000.0F * 8.0F;
        GL11.glTranslatef(var16, 0.0F, 0.0F);
        GL11.glRotatef(-50.0F, 0.0F, 0.0F, 1.0F);
        func_78439_a(var5, 0.0F, 0.0F, 1.0F, 1.0F, 0.0625F);
        GL11.glPopMatrix();
        GL11.glPushMatrix();
        GL11.glScalef(var15, var15, var15);
        var16 = (float) (Minecraft.func_71386_F() % 4873L) / 4873.0F * 8.0F;
        GL11.glTranslatef(-var16, 0.0F, 0.0F);
        GL11.glRotatef(10.0F, 0.0F, 0.0F, 1.0F);
        func_78439_a(var5, 0.0F, 0.0F, 1.0F, 1.0F, 0.0625F);
        GL11.glPopMatrix();
        GL11.glMatrixMode(5888);
        GL11.glDisable(3042);
        GL11.glEnable(2896);
        GL11.glDepthFunc(515);
      }

      GL11.glDisable('\u803a');
    }

    GL11.glPopMatrix();
  }
예제 #11
0
 public void func_78443_a(EntityLiving p_78443_1_, ItemStack p_78443_2_, int p_78443_3_) {
   GL11.glPushMatrix();
   Block block = null;
   if (p_78443_2_.field_77993_c < Block.field_71973_m.length) {
     block = Block.field_71973_m[p_78443_2_.field_77993_c];
   }
   if (block != null && RenderBlocks.func_78597_b(block.func_71857_b())) {
     GL11.glBindTexture(3553, field_78455_a.field_71446_o.func_78341_b("/terrain.png"));
     field_78452_e.func_78600_a(block, p_78443_2_.func_77960_j(), 1.0F);
   } else {
     if (block != null) {
       GL11.glBindTexture(3553, field_78455_a.field_71446_o.func_78341_b("/terrain.png"));
     } else {
       GL11.glBindTexture(3553, field_78455_a.field_71446_o.func_78341_b("/gui/items.png"));
     }
     Tessellator tessellator = Tessellator.field_78398_a;
     int i = p_78443_1_.func_70620_b(p_78443_2_, p_78443_3_);
     float f = ((float) ((i % 16) * 16) + 0.0F) / 256F;
     float f1 = ((float) ((i % 16) * 16) + 15.99F) / 256F;
     float f2 = ((float) ((i / 16) * 16) + 0.0F) / 256F;
     float f3 = ((float) ((i / 16) * 16) + 15.99F) / 256F;
     float f4 = 0.0F;
     float f5 = 0.3F;
     GL11.glEnable(32826);
     GL11.glTranslatef(-f4, -f5, 0.0F);
     float f6 = 1.5F;
     GL11.glScalef(f6, f6, f6);
     GL11.glRotatef(50F, 0.0F, 1.0F, 0.0F);
     GL11.glRotatef(335F, 0.0F, 0.0F, 1.0F);
     GL11.glTranslatef(-0.9375F, -0.0625F, 0.0F);
     func_78439_a(tessellator, f1, f2, f, f3);
     if (p_78443_2_ != null && p_78443_2_.func_77962_s() && p_78443_3_ == 0) {
       GL11.glDepthFunc(514);
       GL11.glDisable(2896);
       field_78455_a.field_71446_o.func_78342_b(
           field_78455_a.field_71446_o.func_78341_b("%blur%/misc/glint.png"));
       GL11.glEnable(3042);
       GL11.glBlendFunc(768, 1);
       float f7 = 0.76F;
       GL11.glColor4f(0.5F * f7, 0.25F * f7, 0.8F * f7, 1.0F);
       GL11.glMatrixMode(5890);
       GL11.glPushMatrix();
       float f8 = 0.125F;
       GL11.glScalef(f8, f8, f8);
       float f9 = ((float) (Minecraft.func_71386_F() % 3000L) / 3000F) * 8F;
       GL11.glTranslatef(f9, 0.0F, 0.0F);
       GL11.glRotatef(-50F, 0.0F, 0.0F, 1.0F);
       func_78439_a(tessellator, 0.0F, 0.0F, 1.0F, 1.0F);
       GL11.glPopMatrix();
       GL11.glPushMatrix();
       GL11.glScalef(f8, f8, f8);
       f9 = ((float) (Minecraft.func_71386_F() % 4873L) / 4873F) * 8F;
       GL11.glTranslatef(-f9, 0.0F, 0.0F);
       GL11.glRotatef(10F, 0.0F, 0.0F, 1.0F);
       func_78439_a(tessellator, 0.0F, 0.0F, 1.0F, 1.0F);
       GL11.glPopMatrix();
       GL11.glMatrixMode(5888);
       GL11.glDisable(3042);
       GL11.glEnable(2896);
       GL11.glDepthFunc(515);
     }
     GL11.glDisable(32826);
   }
   GL11.glPopMatrix();
 }
예제 #12
0
  public void func_78443_a(EntityLivingBase p_78443_1_, ItemStack p_78443_2_, int p_78443_3_) {
    GL11.glPushMatrix();
    TextureManager var4 = this.field_78455_a.func_110434_K();
    if (p_78443_2_.func_94608_d() == 0
        && p_78443_2_.field_77993_c < Block.field_71973_m.length
        && Block.field_71973_m[p_78443_2_.field_77993_c] != null
        && RenderBlocks.func_78597_b(
            Block.field_71973_m[p_78443_2_.field_77993_c].func_71857_b())) {
      var4.func_110577_a(var4.func_130087_a(0));
      this.field_78452_e.func_78600_a(
          Block.field_71973_m[p_78443_2_.field_77993_c], p_78443_2_.func_77960_j(), 1.0F);
    } else {
      Icon var5 = p_78443_1_.func_70620_b(p_78443_2_, p_78443_3_);
      if (var5 == null) {
        GL11.glPopMatrix();
        return;
      }

      var4.func_110577_a(var4.func_130087_a(p_78443_2_.func_94608_d()));
      Tessellator var6 = Tessellator.field_78398_a;
      float var7 = var5.func_94209_e();
      float var8 = var5.func_94212_f();
      float var9 = var5.func_94206_g();
      float var10 = var5.func_94210_h();
      float var11 = 0.0F;
      float var12 = 0.3F;
      GL11.glEnable('\u803a');
      GL11.glTranslatef(-var11, -var12, 0.0F);
      float var13 = 1.5F;
      GL11.glScalef(var13, var13, var13);
      GL11.glRotatef(50.0F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(335.0F, 0.0F, 0.0F, 1.0F);
      GL11.glTranslatef(-0.9375F, -0.0625F, 0.0F);
      func_78439_a(
          var6, var8, var9, var7, var10, var5.func_94211_a(), var5.func_94216_b(), 0.0625F);
      if (p_78443_2_.func_77962_s() && p_78443_3_ == 0) {
        GL11.glDepthFunc(514);
        GL11.glDisable(2896);
        var4.func_110577_a(field_110930_b);
        GL11.glEnable(3042);
        GL11.glBlendFunc(768, 1);
        float var14 = 0.76F;
        GL11.glColor4f(0.5F * var14, 0.25F * var14, 0.8F * var14, 1.0F);
        GL11.glMatrixMode(5890);
        GL11.glPushMatrix();
        float var15 = 0.125F;
        GL11.glScalef(var15, var15, var15);
        float var16 = (float) (Minecraft.func_71386_F() % 3000L) / 3000.0F * 8.0F;
        GL11.glTranslatef(var16, 0.0F, 0.0F);
        GL11.glRotatef(-50.0F, 0.0F, 0.0F, 1.0F);
        func_78439_a(var6, 0.0F, 0.0F, 1.0F, 1.0F, 256, 256, 0.0625F);
        GL11.glPopMatrix();
        GL11.glPushMatrix();
        GL11.glScalef(var15, var15, var15);
        var16 = (float) (Minecraft.func_71386_F() % 4873L) / 4873.0F * 8.0F;
        GL11.glTranslatef(-var16, 0.0F, 0.0F);
        GL11.glRotatef(10.0F, 0.0F, 0.0F, 1.0F);
        func_78439_a(var6, 0.0F, 0.0F, 1.0F, 1.0F, 256, 256, 0.0625F);
        GL11.glPopMatrix();
        GL11.glMatrixMode(5888);
        GL11.glDisable(3042);
        GL11.glEnable(2896);
        GL11.glDepthFunc(515);
      }

      GL11.glDisable('\u803a');
    }

    GL11.glPopMatrix();
  }