示例#1
0
  public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
    this.func_73986_b(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;
    int var7 = this.field_73881_g + 50;
    float var8 = -((float) this.field_73990_a + p_73863_3_) * this.field_73987_d;
    GL11.glPushMatrix();
    GL11.glTranslatef(0.0F, var8, 0.0F);
    this.field_73882_e.func_110434_K().func_110577_a(field_110362_a);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    this.func_73729_b(var6, var7, 0, 0, 155, 44);
    this.func_73729_b(var6 + 155, var7, 0, 45, 155, 44);
    var4.func_78378_d(16777215);
    int var9 = var7 + 200;

    int var10;
    for (var10 = 0; var10 < this.field_73988_b.size(); ++var10) {
      if (var10 == this.field_73988_b.size() - 1) {
        float var11 = (float) var9 + var8 - (float) (this.field_73881_g / 2 - 6);
        if (var11 < 0.0F) {
          GL11.glTranslatef(0.0F, -var11, 0.0F);
        }
      }

      if ((float) var9 + var8 + 12.0F + 8.0F > 0.0F
          && (float) var9 + var8 < (float) this.field_73881_g) {
        String var12 = (String) this.field_73988_b.get(var10);
        if (var12.startsWith("[C]")) {
          this.field_73886_k.func_78261_a(
              var12.substring(3),
              var6 + (var5 - this.field_73886_k.func_78256_a(var12.substring(3))) / 2,
              var9,
              16777215);
        } else {
          this.field_73886_k.field_78289_c.setSeed(
              (long) var10 * 4238972211L + (long) (this.field_73990_a / 4));
          this.field_73886_k.func_78261_a(var12, var6, var9, 16777215);
        }
      }

      var9 += 12;
    }

    GL11.glPopMatrix();
    this.field_73882_e.func_110434_K().func_110577_a(field_110361_b);
    GL11.glEnable(3042);
    GL11.glBlendFunc(0, 769);
    var4.func_78382_b();
    var4.func_78369_a(1.0F, 1.0F, 1.0F, 1.0F);
    var10 = this.field_73880_f;
    int var13 = this.field_73881_g;
    var4.func_78374_a(0.0D, (double) var13, (double) this.field_73735_i, 0.0D, 1.0D);
    var4.func_78374_a((double) var10, (double) var13, (double) this.field_73735_i, 1.0D, 1.0D);
    var4.func_78374_a((double) var10, 0.0D, (double) this.field_73735_i, 1.0D, 0.0D);
    var4.func_78374_a(0.0D, 0.0D, (double) this.field_73735_i, 0.0D, 0.0D);
    var4.func_78381_a();
    GL11.glDisable(3042);
    super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
  }
示例#2
0
 public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
   func_73734_a(
       2,
       this.field_73881_g - 14,
       this.field_73880_f - 2,
       this.field_73881_g - 2,
       Integer.MIN_VALUE);
   this.field_73901_a.func_73795_f();
   super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
 }
示例#3
0
 public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
   this.func_73873_v_();
   this.func_73732_a(
       this.field_73886_k,
       StatCollector.func_74838_a("lanServer.title"),
       this.field_73880_f / 2,
       50,
       16777215);
   this.func_73732_a(
       this.field_73886_k,
       StatCollector.func_74838_a("lanServer.otherPlayers"),
       this.field_73880_f / 2,
       82,
       16777215);
   super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
 }
 public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
   this.func_146276_q_();
   this.func_73732_a(
       this.field_146289_q,
       I18n.func_135052_a("selectWorld.renameTitle", new Object[0]),
       this.field_146294_l / 2,
       20,
       16777215);
   this.func_73731_b(
       this.field_146289_q,
       I18n.func_135052_a("selectWorld.enterName", new Object[0]),
       this.field_146294_l / 2 - 100,
       47,
       10526880);
   this.field_146583_f.func_146194_f();
   super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
 }
示例#5
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_);
  }
  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();
  }
 public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
   this.func_146276_q_();
   this.func_73732_a(
       this.field_146289_q, this.field_146507_a, this.field_146294_l / 2, 15, 16777215);
   super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
 }
 public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
   this.field_74153_p.func_77211_a(p_73863_1_, p_73863_2_, p_73863_3_);
   this.func_73732_a(this.field_73886_k, this.field_74151_b, this.field_73880_f / 2, 20, 16777215);
   super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
 }
  public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    this.field_73882_e.func_110434_K().func_110577_a(field_110405_a);
    int var4 = (this.field_73880_f - this.field_74171_o) / 2;
    byte var5 = 2;
    this.func_73729_b(var4, var5, 0, 0, this.field_74171_o, this.field_74180_p);
    String var6;
    String var7;
    int var8;
    if (this.field_74172_m) {
      var6 = this.field_74176_t;
      if (this.field_74168_c) {
        if (this.field_74170_n / 6 % 2 == 0) {
          var6 = var6 + "" + EnumChatFormatting.BLACK + "_";
        } else {
          var6 = var6 + "" + EnumChatFormatting.GRAY + "_";
        }
      }

      var7 = I18n.func_135053_a("book.editTitle");
      var8 = this.field_73886_k.func_78256_a(var7);
      this.field_73886_k.func_78276_b(var7, var4 + 36 + (116 - var8) / 2, var5 + 16 + 16, 0);
      int var9 = this.field_73886_k.func_78256_a(var6);
      this.field_73886_k.func_78276_b(var6, var4 + 36 + (116 - var9) / 2, var5 + 48, 0);
      String var10 =
          String.format(
              I18n.func_135053_a("book.byAuthor"),
              new Object[] {this.field_74169_a.func_70005_c_()});
      int var11 = this.field_73886_k.func_78256_a(var10);
      this.field_73886_k.func_78276_b(
          EnumChatFormatting.DARK_GRAY + var10, var4 + 36 + (116 - var11) / 2, var5 + 48 + 10, 0);
      String var12 = I18n.func_135053_a("book.finalizeWarning");
      this.field_73886_k.func_78279_b(var12, var4 + 36, var5 + 80, 116, 0);
    } else {
      var6 =
          String.format(
              I18n.func_135053_a("book.pageIndicator"),
              new Object[] {
                Integer.valueOf(this.field_74178_r + 1), Integer.valueOf(this.field_74179_q)
              });
      var7 = "";
      if (this.field_74177_s != null
          && this.field_74178_r >= 0
          && this.field_74178_r < this.field_74177_s.func_74745_c()) {
        NBTTagString var13 = (NBTTagString) this.field_74177_s.func_74743_b(this.field_74178_r);
        var7 = var13.toString();
      }

      if (this.field_74168_c) {
        if (this.field_73886_k.func_78260_a()) {
          var7 = var7 + "_";
        } else if (this.field_74170_n / 6 % 2 == 0) {
          var7 = var7 + "" + EnumChatFormatting.BLACK + "_";
        } else {
          var7 = var7 + "" + EnumChatFormatting.GRAY + "_";
        }
      }

      var8 = this.field_73886_k.func_78256_a(var6);
      this.field_73886_k.func_78276_b(var6, var4 - var8 + this.field_74171_o - 44, var5 + 16, 0);
      this.field_73886_k.func_78279_b(var7, var4 + 36, var5 + 16 + 16, 116, 0);
    }

    super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
  }