protected void func_73875_a(GuiButton p_73875_1_) { if(p_73875_1_.field_73742_g) { if(p_73875_1_.field_73741_f == 1) { this.func_140032_e(this.field_96189_n); } else if(p_73875_1_.field_73741_f == 3) { this.func_140019_s(); } else if(p_73875_1_.field_73741_f == 0) { field_96194_t.func_98248_d(); this.field_73882_e.func_71373_a(this.field_96188_a); } else if(p_73875_1_.field_73741_f == 2) { field_96194_t.func_98248_d(); this.field_73882_e.func_71373_a(new GuiScreenCreateOnlineWorld(this)); } else if(p_73875_1_.field_73741_f == 4) { this.field_96197_q.func_96135_a("http://realms.minecraft.net/"); } else { this.field_96186_b.func_73875_a(p_73875_1_); } } }
protected void actionPerformed(GuiButton p_146284_1_) { if (p_146284_1_.enabled) { if (p_146284_1_.id == 1) { this.func_146656_d(this.field_146705_v); } else if (p_146284_1_.id == 3) { this.func_146667_u(); } else if (p_146284_1_.id == 0) { this.func_146669_s(); this.mc.displayGuiScreen(this.field_146707_t); } else if (p_146284_1_.id == 2) { this.func_146669_s(); this.mc.displayGuiScreen((GuiScreen)(this.field_146694_D > 0 ? new GuiScreenCreateOnlineWorld(this) : new GuiScreenBuyRealms(this))); } else if (p_146284_1_.id == 4) { this.func_146660_t(); } else { this.field_146706_u.func_148357_a(p_146284_1_); } } }
public TaskWorldCreation(GuiScreenCreateOnlineWorld p_i1106_1_, String p_i1106_2_, String p_i1106_3_, String p_i1106_4_, WorldTemplate p_i1106_5_) { this.field_96590_a = p_i1106_1_; this.field_96589_c = p_i1106_2_; this.field_96587_d = p_i1106_3_; this.field_104065_f = p_i1106_4_; this.field_111253_f = p_i1106_5_; }
public void run() { String var1 = I18n.func_135053_a("mco.create.world.wait"); this.func_96576_b(var1); McoClient var2 = new McoClient(GuiScreenCreateOnlineWorld.func_96248_a(this.field_96590_a).func_110432_I()); try { if(this.field_111253_f != null) { var2.func_96386_a(this.field_96589_c, this.field_96587_d, this.field_104065_f, this.field_111253_f.field_110734_a); } else { var2.func_96386_a(this.field_96589_c, this.field_96587_d, this.field_104065_f, "-1"); } GuiScreenCreateOnlineWorld.func_96246_c(this.field_96590_a).func_71373_a(GuiScreenCreateOnlineWorld.func_96247_b(this.field_96590_a)); } catch (ExceptionMcoService var4) { GuiScreenCreateOnlineWorld.func_130026_d(this.field_96590_a).func_98033_al().func_98232_c(var4.toString()); this.func_96575_a(var4.toString()); } catch (UnsupportedEncodingException var5) { GuiScreenCreateOnlineWorld.func_130027_e(this.field_96590_a).func_98033_al().func_98236_b("Realms: " + var5.getLocalizedMessage()); this.func_96575_a(var5.getLocalizedMessage()); } catch (IOException var6) { GuiScreenCreateOnlineWorld.func_130028_f(this.field_96590_a).func_98033_al().func_98236_b("Realms: could not parse response"); this.func_96575_a(var6.getLocalizedMessage()); } catch (Exception var7) { this.func_96575_a(var7.getLocalizedMessage()); } }
/** * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e). */ protected void actionPerformed(GuiButton par1GuiButton) { if (par1GuiButton.enabled) { if (par1GuiButton.id == 1) { this.func_140032_e(this.field_96189_n); } else if (par1GuiButton.id == 3) { this.func_140019_s(); } else if (par1GuiButton.id == 0) { field_96194_t.func_98248_d(); this.mc.displayGuiScreen(this.field_96188_a); } else if (par1GuiButton.id == 2) { field_96194_t.func_98248_d(); this.mc.displayGuiScreen(new GuiScreenCreateOnlineWorld(this)); } else if (par1GuiButton.id == 4) { this.field_96197_q.func_96135_a("http://realms.minecraft.net/"); } else { this.field_96186_b.actionPerformed(par1GuiButton); } } }