public void confirmClicked(boolean result, int id) { if (this.field_146643_x) { this.field_146643_x = false; if (result) { ISaveFormat var3 = this.mc.getSaveLoader(); var3.flushCache(); var3.deleteWorldDirectory(this.func_146621_a(id)); try { this.func_146627_h(); } catch (AnvilConverterException var5) { logger.error("Couldn\'t load level list", var5); } } this.mc.displayGuiScreen(this); } }
public void confirmClicked(boolean p_73878_1_, int p_73878_2_) { if (p_73878_1_ && p_73878_2_ == 12) { ISaveFormat var6 = this.mc.getSaveLoader(); var6.flushCache(); var6.deleteWorldDirectory("Demo_World"); this.mc.displayGuiScreen(this); } else if (p_73878_2_ == 13) { if (p_73878_1_) { try { Class var3 = Class.forName("java.awt.Desktop"); Object var4 = var3.getMethod("getDesktop", new Class[0]).invoke((Object) null, new Object[0]); var3.getMethod("browse", new Class[] {URI.class}) .invoke(var4, new Object[] {new URI(this.field_104024_v)}); } catch (Throwable var5) { logger.error("Couldn\'t open link", var5); } } this.mc.displayGuiScreen(this); } }
public void confirmClicked(boolean par1, int par2) { if (par1 && par2 == 12) { ISaveFormat isaveformat = this.mc.getSaveLoader(); isaveformat.flushCache(); isaveformat.deleteWorldDirectory("Demo_World"); this.mc.displayGuiScreen(this); } else if (par2 == 13) { if (par1) { try { Class oclass = Class.forName("java.awt.Desktop"); Object object = oclass.getMethod("getDesktop", new Class[0]).invoke((Object) null, new Object[0]); oclass .getMethod("browse", new Class[] {URI.class}) .invoke(object, new Object[] {new URI(this.field_104024_v)}); } catch (Throwable throwable) { logger.error("Couldn\'t open link", throwable); } } this.mc.displayGuiScreen(this); } }