/** * Called by the controls from the buttonList when activated. (Mouse pressed for buttons) */ protected void actionPerformed(GuiButton button) throws IOException { if (button.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); } if (button.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); } if (button.id == 101) { tabPage = Math.max(tabPage - 1, 0); } else if (button.id == 102) { tabPage = Math.min(tabPage + 1, maxPages); } }
@Override protected void actionPerformed(GuiButton button) throws IOException { if (button.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); } if (button.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); } if (button.id == 101) { } }
protected void actionPerformed(GuiButton p_146284_1_) { if (p_146284_1_.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); } if (p_146284_1_.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); } if (p_146284_1_.id == 101) { tabPage = Math.max(tabPage - 1, 0); } else if (p_146284_1_.id == 102) { tabPage = Math.min(tabPage + 1, maxPages); } }
public GuiSlotStatsBlock(GuiStats p_i1066_1_) { super(p_i1066_1_); this.field_77268_a = p_i1066_1_; this.field_77266_h = new ArrayList(); Iterator var2 = StatList.field_75939_e.iterator(); while(var2.hasNext()) { StatCrafting var3 = (StatCrafting)var2.next(); boolean var4 = false; int var5 = var3.func_75982_a(); if(GuiStats.func_74127_c(p_i1066_1_).func_77444_a(var3) > 0) { var4 = true; } else if(StatList.field_75929_E[var5] != null && GuiStats.func_74127_c(p_i1066_1_).func_77444_a(StatList.field_75929_E[var5]) > 0) { var4 = true; } else if(StatList.field_75928_D[var5] != null && GuiStats.func_74127_c(p_i1066_1_).func_77444_a(StatList.field_75928_D[var5]) > 0) { var4 = true; } if(var4) { this.field_77266_h.add(var3); } } this.field_77267_i = new SorterStatsBlock(this, p_i1066_1_); }
protected void func_77222_a(int p_77222_1_, int p_77222_2_, Tessellator p_77222_3_) { super.func_77222_a(p_77222_1_, p_77222_2_, p_77222_3_); if(this.field_77262_g == 0) { GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 115 - 18 + 1, p_77222_2_ + 1 + 1, 18, 18); } else { GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 115 - 18, p_77222_2_ + 1, 18, 18); } if(this.field_77262_g == 1) { GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 165 - 18 + 1, p_77222_2_ + 1 + 1, 36, 18); } else { GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 165 - 18, p_77222_2_ + 1, 36, 18); } if(this.field_77262_g == 2) { GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 215 - 18 + 1, p_77222_2_ + 1 + 1, 54, 18); } else { GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 215 - 18, p_77222_2_ + 1, 54, 18); } }
public GuiSlotStatsItem(GuiStats p_i1069_1_) { super(p_i1069_1_); this.field_77269_a = p_i1069_1_; this.field_77266_h = new ArrayList(); Iterator var2 = StatList.field_75938_d.iterator(); while(var2.hasNext()) { StatCrafting var3 = (StatCrafting)var2.next(); boolean var4 = false; int var5 = var3.func_75982_a(); if(GuiStats.func_74127_c(p_i1069_1_).func_77444_a(var3) > 0) { var4 = true; } else if(StatList.field_75930_F[var5] != null && GuiStats.func_74127_c(p_i1069_1_).func_77444_a(StatList.field_75930_F[var5]) > 0) { var4 = true; } else if(StatList.field_75928_D[var5] != null && GuiStats.func_74127_c(p_i1069_1_).func_77444_a(StatList.field_75928_D[var5]) > 0) { var4 = true; } if(var4) { this.field_77266_h.add(var3); } } this.field_77267_i = new SorterStatsItem(this, p_i1069_1_); }
protected void func_77222_a(int p_77222_1_, int p_77222_2_, Tessellator p_77222_3_) { super.func_77222_a(p_77222_1_, p_77222_2_, p_77222_3_); if(this.field_77262_g == 0) { GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 115 - 18 + 1, p_77222_2_ + 1 + 1, 72, 18); } else { GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 115 - 18, p_77222_2_ + 1, 72, 18); } if(this.field_77262_g == 1) { GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 165 - 18 + 1, p_77222_2_ + 1 + 1, 18, 18); } else { GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 165 - 18, p_77222_2_ + 1, 18, 18); } if(this.field_77262_g == 2) { GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 215 - 18 + 1, p_77222_2_ + 1 + 1, 36, 18); } else { GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 215 - 18, p_77222_2_ + 1, 36, 18); } }
protected void func_77224_a(int p_77224_1_, int p_77224_2_) { this.field_77262_g = -1; if(p_77224_1_ >= 79 && p_77224_1_ < 115) { this.field_77262_g = 0; } else if(p_77224_1_ >= 129 && p_77224_1_ < 165) { this.field_77262_g = 1; } else if(p_77224_1_ >= 179 && p_77224_1_ < 215) { this.field_77262_g = 2; } if(this.field_77262_g >= 0) { this.func_77261_e(this.field_77262_g); GuiStats.func_74133_g(this.field_77263_l).field_71416_A.func_77366_a("random.click", 1.0F, 1.0F); } }
/** * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e). */ protected void actionPerformed(GuiButton par1GuiButton) { if (par1GuiButton.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter)); } if (par1GuiButton.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter)); } if (par1GuiButton.id == 101) { tabPage = Math.max(tabPage - 1, 0); } else if (par1GuiButton.id == 102) { tabPage = Math.min(tabPage + 1, maxPages); } }
/** * Called by the controls from the buttonList when activated. (Mouse pressed for buttons) */ protected void actionPerformed(GuiButton button) throws IOException { if (button.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); } if (button.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); } }
/** * Called by the controls from the buttonList when activated. (Mouse pressed for buttons) */ protected void actionPerformed(GuiButton button) throws IOException { if (button.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.player.getStatFileWriter())); } if (button.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter())); } }
/** * Called by the controls from the buttonList when activated. (Mouse pressed * for buttons) */ @Override protected void actionPerformed(GuiButton button) throws IOException { /*if (button.id == 0) this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.player.getStatFileWriter()));*/ if (button.id == 1) this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter())); }
@Override protected void actionPerformed(GuiButton button) { // if (button.id == 0) { // this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.player.getStatFileWriter())); // } if (button.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter())); } }
protected void actionPerformed(GuiButton p_146284_1_) { switch (p_146284_1_.id) { case 0: this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); break; case 1: p_146284_1_.enabled = false; this.mc.theWorld.sendQuittingDisconnectingPacket(); this.mc.loadWorld((WorldClient)null); this.mc.displayGuiScreen(new HookGuiMainMenu()); case 2: case 3: default: break; case 4: this.mc.displayGuiScreen((GuiScreen)null); this.mc.setIngameFocus(); break; case 5: this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.func_146107_m())); break; case 6: this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.func_146107_m())); break; case 7: this.mc.displayGuiScreen(new GuiShareToLan(this)); } }
protected void actionPerformed(GuiButton p_146284_1_) { if (p_146284_1_.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.func_146107_m())); } if (p_146284_1_.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.func_146107_m())); } }
@Override protected void actionPerformed(GuiButton guiButton) { if (guiButton.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); } else if (guiButton.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); } }
protected void actionPerformed(GuiButton p_146284_1_) { switch (p_146284_1_.id) { case 0: this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings)); break; case 1: p_146284_1_.enabled = false; this.mc.theWorld.sendQuittingDisconnectingPacket(); this.mc.loadWorld((WorldClient)null); this.mc.displayGuiScreen(new GuiMainMenu()); case 2: case 3: default: break; case 4: this.mc.displayGuiScreen((GuiScreen)null); this.mc.setIngameFocus(); break; case 5: if (this.mc.thePlayer != null) this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); break; case 6: if (this.mc.thePlayer != null) this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); break; case 7: this.mc.displayGuiScreen(new GuiShareToLan(this)); break; case 12: FMLClientHandler.instance().showInGameModOptions(this); break; } }
protected void actionPerformed(GuiButton p_146284_1_) { if (p_146284_1_.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); } if (p_146284_1_.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); } }
@Override protected void actionPerformed(GuiButton button) { if (button.id == 0) { this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter())); } if (button.id == 1) { this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter())); } }
protected void func_73875_a(GuiButton p_73875_1_) { switch(p_73875_1_.field_73741_f) { case 0: this.field_73882_e.func_71373_a(new GuiOptions(this, this.field_73882_e.field_71474_y)); break; case 1: p_73875_1_.field_73742_g = false; this.field_73882_e.field_71413_E.func_77450_a(StatList.field_75947_j, 1); this.field_73882_e.field_71441_e.func_72882_A(); this.field_73882_e.func_71403_a((WorldClient)null); this.field_73882_e.func_71373_a(new GuiMainMenu()); case 2: case 3: default: break; case 4: this.field_73882_e.func_71373_a((GuiScreen)null); this.field_73882_e.func_71381_h(); this.field_73882_e.field_71416_A.func_82461_f(); break; case 5: this.field_73882_e.func_71373_a(new GuiAchievements(this.field_73882_e.field_71413_E)); break; case 6: this.field_73882_e.func_71373_a(new GuiStats(this, this.field_73882_e.field_71413_E)); break; case 7: this.field_73882_e.func_71373_a(new GuiShareToLan(this)); } }
protected void func_73875_a(GuiButton p_73875_1_) { if(p_73875_1_.field_73741_f == 0) { this.field_73882_e.func_71373_a(new GuiAchievements(this.field_73882_e.field_71413_E)); } if(p_73875_1_.field_73741_f == 1) { this.field_73882_e.func_71373_a(new GuiStats(this, this.field_73882_e.field_71413_E)); } }
public int func_78337_a(StatCrafting p_78337_1_, StatCrafting p_78337_2_) { int var3 = p_78337_1_.func_75982_a(); int var4 = p_78337_2_.func_75982_a(); StatBase var5 = null; StatBase var6 = null; if(this.field_78338_b.field_77264_j == 0) { var5 = StatList.field_75930_F[var3]; var6 = StatList.field_75930_F[var4]; } else if(this.field_78338_b.field_77264_j == 1) { var5 = StatList.field_75928_D[var3]; var6 = StatList.field_75928_D[var4]; } else if(this.field_78338_b.field_77264_j == 2) { var5 = StatList.field_75929_E[var3]; var6 = StatList.field_75929_E[var4]; } if(var5 != null || var6 != null) { if(var5 == null) { return 1; } if(var6 == null) { return -1; } int var7 = GuiStats.func_74127_c(this.field_78338_b.field_77269_a).func_77444_a(var5); int var8 = GuiStats.func_74127_c(this.field_78338_b.field_77269_a).func_77444_a(var6); if(var7 != var8) { return (var7 - var8) * this.field_78338_b.field_77265_k; } } return var3 - var4; }
public int func_78334_a(StatCrafting p_78334_1_, StatCrafting p_78334_2_) { int var3 = p_78334_1_.func_75982_a(); int var4 = p_78334_2_.func_75982_a(); StatBase var5 = null; StatBase var6 = null; if(this.field_78335_b.field_77264_j == 2) { var5 = StatList.field_75934_C[var3]; var6 = StatList.field_75934_C[var4]; } else if(this.field_78335_b.field_77264_j == 0) { var5 = StatList.field_75928_D[var3]; var6 = StatList.field_75928_D[var4]; } else if(this.field_78335_b.field_77264_j == 1) { var5 = StatList.field_75929_E[var3]; var6 = StatList.field_75929_E[var4]; } if(var5 != null || var6 != null) { if(var5 == null) { return 1; } if(var6 == null) { return -1; } int var7 = GuiStats.func_74127_c(this.field_78335_b.field_77268_a).func_77444_a(var5); int var8 = GuiStats.func_74127_c(this.field_78335_b.field_77268_a).func_77444_a(var6); if(var7 != var8) { return (var7 - var8) * this.field_78335_b.field_77265_k; } } return var3 - var4; }
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_) { StatCrafting var6 = this.func_77257_d(p_77214_1_); int var7 = var6.func_75982_a(); GuiStats.func_74131_a(this.field_77268_a, p_77214_2_ + 40, p_77214_3_, var7); this.func_77260_a((StatCrafting)StatList.field_75928_D[var7], p_77214_2_ + 115, p_77214_3_, p_77214_1_ % 2 == 0); this.func_77260_a((StatCrafting)StatList.field_75929_E[var7], p_77214_2_ + 165, p_77214_3_, p_77214_1_ % 2 == 0); this.func_77260_a(var6, p_77214_2_ + 215, p_77214_3_, p_77214_1_ % 2 == 0); }
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_) { StatCrafting var6 = this.func_77257_d(p_77214_1_); int var7 = var6.func_75982_a(); GuiStats.func_74131_a(this.field_77269_a, p_77214_2_ + 40, p_77214_3_, var7); this.func_77260_a((StatCrafting)StatList.field_75930_F[var7], p_77214_2_ + 115, p_77214_3_, p_77214_1_ % 2 == 0); this.func_77260_a((StatCrafting)StatList.field_75928_D[var7], p_77214_2_ + 165, p_77214_3_, p_77214_1_ % 2 == 0); this.func_77260_a(var6, p_77214_2_ + 215, p_77214_3_, p_77214_1_ % 2 == 0); }