public GuiConfirmOpenLink(GuiScreen p_i3102_1_, String p_i3102_2_, int p_i3102_3_) { super( p_i3102_1_, StringTranslate.func_74808_a().func_74805_b("chat.link.confirm"), p_i3102_2_, p_i3102_3_); StringTranslate stringtranslate = StringTranslate.func_74808_a(); field_73941_c = stringtranslate.func_74805_b("gui.yes"); field_73939_d = stringtranslate.func_74805_b("gui.no"); field_73946_b = stringtranslate.func_74805_b("chat.copy"); field_73947_a = stringtranslate.func_74805_b("chat.link.warning"); }
private static String func_74299_a(String[] p_74299_0_, int p_74299_1_) { if (p_74299_1_ < 0 || p_74299_1_ >= p_74299_0_.length) { p_74299_1_ = 0; } StringTranslate var2 = StringTranslate.func_74808_a(); return var2.func_74805_b(p_74299_0_[p_74299_1_]); }
public String func_74297_c(EnumOptions p_74297_1_) { StringTranslate var2 = StringTranslate.func_74808_a(); String var3 = var2.func_74805_b(p_74297_1_.func_74378_d()) + ": "; if (p_74297_1_.func_74380_a()) { float var5 = this.func_74296_a(p_74297_1_); return p_74297_1_ == EnumOptions.SENSITIVITY ? (var5 == 0.0F ? var3 + var2.func_74805_b("options.sensitivity.min") : (var5 == 1.0F ? var3 + var2.func_74805_b("options.sensitivity.max") : var3 + (int) (var5 * 200.0F) + "%")) : (p_74297_1_ == EnumOptions.FOV ? (var5 == 0.0F ? var3 + var2.func_74805_b("options.fov.min") : (var5 == 1.0F ? var3 + var2.func_74805_b("options.fov.max") : var3 + (int) (70.0F + var5 * 40.0F))) : (p_74297_1_ == EnumOptions.GAMMA ? (var5 == 0.0F ? var3 + var2.func_74805_b("options.gamma.min") : (var5 == 1.0F ? var3 + var2.func_74805_b("options.gamma.max") : var3 + "+" + (int) (var5 * 100.0F) + "%")) : (p_74297_1_ == EnumOptions.CHAT_OPACITY ? var3 + (int) (var5 * 90.0F + 10.0F) + "%" : (var5 == 0.0F ? var3 + var2.func_74805_b("options.off") : var3 + (int) (var5 * 100.0F) + "%")))); } else if (p_74297_1_.func_74382_b()) { boolean var4 = this.func_74308_b(p_74297_1_); return var4 ? var3 + var2.func_74805_b("options.on") : var3 + var2.func_74805_b("options.off"); } else { return p_74297_1_ == EnumOptions.RENDER_DISTANCE ? var3 + func_74299_a(field_74360_ac, this.field_74339_e) : (p_74297_1_ == EnumOptions.DIFFICULTY ? var3 + func_74299_a(field_74361_ad, this.field_74318_M) : (p_74297_1_ == EnumOptions.GUI_SCALE ? var3 + func_74299_a(field_74367_ae, this.field_74335_Z) : (p_74297_1_ == EnumOptions.CHAT_VISIBILITY ? var3 + func_74299_a(field_74369_af, this.field_74343_n) : (p_74297_1_ == EnumOptions.PARTICLES ? var3 + func_74299_a(field_74364_ag, this.field_74362_aa) : (p_74297_1_ == EnumOptions.FRAMERATE_LIMIT ? var3 + func_74299_a(field_74365_ah, this.field_74350_i) : (p_74297_1_ == EnumOptions.GRAPHICS ? (this.field_74347_j ? var3 + var2.func_74805_b("options.graphics.fancy") : var3 + var2.func_74805_b("options.graphics.fast")) : var3)))))); } }
public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) { this.field_74032_v = null; StringTranslate var4 = StringTranslate.func_74808_a(); this.func_73873_v_(); this.field_74022_d.func_77211_a(p_73863_1_, p_73863_2_, p_73863_3_); this.func_73732_a( this.field_73886_k, var4.func_74805_b("multiplayer.title"), this.field_73880_f / 2, 20, 16777215); super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_); if (this.field_74032_v != null) { this.func_74007_a(this.field_74032_v, p_73863_1_, p_73863_2_); } }
public void func_73866_w_() { StringTranslate var1 = StringTranslate.func_74808_a(); this.field_73887_h.add( new GuiSmallButton( 5, this.field_73880_f / 2 - 154, this.field_73881_g - 48, var1.func_74805_b("texturePack.openFolder"))); this.field_73887_h.add( new GuiSmallButton( 6, this.field_73880_f / 2 + 4, this.field_73881_g - 48, var1.func_74805_b("gui.done"))); this.field_73882_e.field_71418_C.func_77305_c(); this.field_73966_c = (new File(Minecraft.func_71380_b(), "texturepacks")).getAbsolutePath(); this.field_73964_d = new GuiTexturePackSlot(this); this.field_73964_d.func_77220_a(this.field_73887_h, 7, 8); }
protected void func_73875_a(GuiButton p_73875_1_) { if (p_73875_1_.field_73742_g) { if (p_73875_1_.field_73741_f == 2) { String var2 = this.field_74030_m.func_78850_a(this.field_74028_n).field_78847_a; if (var2 != null) { this.field_74036_r = true; StringTranslate var3 = StringTranslate.func_74808_a(); String var4 = var3.func_74805_b("selectServer.deleteQuestion"); String var5 = "\'" + var2 + "\' " + var3.func_74805_b("selectServer.deleteWarning"); String var6 = var3.func_74805_b("selectServer.deleteButton"); String var7 = var3.func_74805_b("gui.cancel"); GuiYesNo var8 = new GuiYesNo(this, var4, var5, var6, var7, this.field_74028_n); this.field_73882_e.func_71373_a(var8); } } else if (p_73875_1_.field_73741_f == 1) { this.func_74004_a(this.field_74028_n); } else if (p_73875_1_.field_73741_f == 4) { this.field_74033_u = true; this.field_73882_e.func_71373_a( new GuiScreenServerList( this, this.field_74031_w = new ServerData(StatCollector.func_74838_a("selectServer.defaultName"), ""))); } else if (p_73875_1_.field_73741_f == 3) { this.field_74035_s = true; this.field_73882_e.func_71373_a( new GuiScreenAddServer( this, this.field_74031_w = new ServerData(StatCollector.func_74838_a("selectServer.defaultName"), ""))); } else if (p_73875_1_.field_73741_f == 7) { this.field_74034_t = true; ServerData var9 = this.field_74030_m.func_78850_a(this.field_74028_n); this.field_73882_e.func_71373_a( new GuiScreenAddServer( this, this.field_74031_w = new ServerData(var9.field_78847_a, var9.field_78845_b))); } else if (p_73875_1_.field_73741_f == 0) { this.field_73882_e.func_71373_a(this.field_74025_c); } else if (p_73875_1_.field_73741_f == 8) { this.field_73882_e.func_71373_a(new GuiMultiplayer(this.field_74025_c)); } else { this.field_74022_d.func_77219_a(p_73875_1_); } } }
public void run() { String var1 = StringTranslate.func_74808_a().func_74805_b("mco.create.world.wait"); this.func_96576_b(var1); McoClient var2 = new McoClient(GuiScreenCreateOnlineWorld.func_98099_d(this.field_96590_a).field_71449_j); try { var2.func_96386_a(this.field_96589_c, this.field_96587_d, this.field_96588_e); GuiScreenCreateOnlineWorld.func_96246_c(this.field_96590_a) .func_71373_a(GuiScreenCreateOnlineWorld.func_96247_b(this.field_96590_a)); } catch (ExceptionMcoService var4) { this.func_96575_a(var4.field_96391_b); } catch (UnsupportedEncodingException var5) {; } catch (IOException var6) {; } catch (Exception var7) { this.func_96575_a("Failed"); } }
public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) { this.field_73964_d.func_77211_a(p_73863_1_, p_73863_2_, p_73863_3_); if (this.field_73965_b <= 0) { this.field_73882_e.field_71418_C.func_77305_c(); this.field_73965_b += 20; } StringTranslate var4 = StringTranslate.func_74808_a(); this.func_73732_a( this.field_73886_k, var4.func_74805_b("texturePack.title"), this.field_73880_f / 2, 16, 16777215); this.func_73732_a( this.field_73886_k, var4.func_74805_b("texturePack.folderInfo"), this.field_73880_f / 2 - 77, this.field_73881_g - 26, 8421504); super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_); }
public void func_74016_g() { StringTranslate var1 = StringTranslate.func_74808_a(); this.field_73887_h.add( this.field_74029_o = new GuiButton( 7, this.field_73880_f / 2 - 154, this.field_73881_g - 28, 70, 20, var1.func_74805_b("selectServer.edit"))); this.field_73887_h.add( this.field_74037_q = new GuiButton( 2, this.field_73880_f / 2 - 74, this.field_73881_g - 28, 70, 20, var1.func_74805_b("selectServer.delete"))); this.field_73887_h.add( this.field_74038_p = new GuiButton( 1, this.field_73880_f / 2 - 154, this.field_73881_g - 52, 100, 20, var1.func_74805_b("selectServer.select"))); this.field_73887_h.add( new GuiButton( 4, this.field_73880_f / 2 - 50, this.field_73881_g - 52, 100, 20, var1.func_74805_b("selectServer.direct"))); this.field_73887_h.add( new GuiButton( 3, this.field_73880_f / 2 + 4 + 50, this.field_73881_g - 52, 100, 20, var1.func_74805_b("selectServer.add"))); this.field_73887_h.add( new GuiButton( 8, this.field_73880_f / 2 + 4, this.field_73881_g - 28, 70, 20, var1.func_74805_b("selectServer.refresh"))); this.field_73887_h.add( new GuiButton( 0, this.field_73880_f / 2 + 4 + 76, this.field_73881_g - 28, 75, 20, var1.func_74805_b("gui.cancel"))); boolean var2 = this.field_74028_n >= 0 && this.field_74028_n < this.field_74022_d.func_77217_a(); this.field_74038_p.field_73742_g = var2; this.field_74029_o.field_73742_g = var2; this.field_74037_q.field_73742_g = var2; }
public String func_74302_a(int p_74302_1_) { StringTranslate var2 = StringTranslate.func_74808_a(); return var2.func_74805_b(this.field_74324_K[p_74302_1_].field_74515_c); }