private void func_146724_i() { if (this.field_146731_r >= 0 && this.field_146731_r < this.field_146734_i.size()) { (new Thread("MCO Reject Invite #" + field_146732_a.incrementAndGet()) { private static final String __OBFID = "CL_00000800"; public void run() { try { Session var1 = GuiScreenPendingInvitation.this.mc.getSession(); McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy()); var2.func_148706_b(((PendingInvite)GuiScreenPendingInvitation.this.field_146734_i.get(GuiScreenPendingInvitation.this.field_146731_r)).field_148776_a); GuiScreenPendingInvitation.this.func_146718_q(); } catch (ExceptionMcoService var3) { GuiScreenPendingInvitation.logger.error("Couldn\'t reject invite"); } } }).start(); } }
private void func_146723_p() { if (this.field_146731_r >= 0 && this.field_146731_r < this.field_146734_i.size()) { (new Thread("MCO Accept Invite #" + field_146732_a.incrementAndGet()) { private static final String __OBFID = "CL_00000801"; public void run() { try { Session var1 = GuiScreenPendingInvitation.this.mc.getSession(); McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy()); var2.func_148691_a(((PendingInvite)GuiScreenPendingInvitation.this.field_146734_i.get(GuiScreenPendingInvitation.this.field_146731_r)).field_148776_a); GuiScreenPendingInvitation.this.func_146718_q(); } catch (ExceptionMcoService var3) { GuiScreenPendingInvitation.logger.error("Couldn\'t accept invite"); } } }).start(); } }
public static PendingInvitesList func_130095_a(String p_130095_0_) { PendingInvitesList var1 = new PendingInvitesList(); try { JsonRootNode var2 = (new JdomParser()).parse(p_130095_0_); if(var2.isArrayNode(new Object[]{"invites"})) { Iterator var3 = var2.getArrayNode(new Object[]{"invites"}).iterator(); while(var3.hasNext()) { JsonNode var4 = (JsonNode)var3.next(); var1.field_130096_a.add(PendingInvite.func_130091_a(var4)); } } } catch (InvalidSyntaxException var5) { ; } return var1; }
public void run() { try { McoClient var1 = new McoClient(GuiScreenPendingInvitation.func_130046_h(this.field_130131_a).func_110432_I()); var1.func_130107_a(((PendingInvite)GuiScreenPendingInvitation.func_130042_e(this.field_130131_a).get(GuiScreenPendingInvitation.func_130049_d(this.field_130131_a))).field_130094_a); GuiScreenPendingInvitation.func_130040_f(this.field_130131_a); } catch (ExceptionMcoService var2) { GuiScreenPendingInvitation.func_130055_i(this.field_130131_a).func_98033_al().func_98232_c(var2.toString()); } }
public void run() { try { McoClient var1 = new McoClient(GuiScreenPendingInvitation.func_130041_c(this.field_130132_a).func_110432_I()); var1.func_130109_b(((PendingInvite)GuiScreenPendingInvitation.func_130042_e(this.field_130132_a).get(GuiScreenPendingInvitation.func_130049_d(this.field_130132_a))).field_130094_a); GuiScreenPendingInvitation.func_130040_f(this.field_130132_a); } catch (ExceptionMcoService var2) { GuiScreenPendingInvitation.func_130056_g(this.field_130132_a).func_98033_al().func_98232_c(var2.toString()); } }
public void run() { try { McoClient mcoclient = new McoClient(GuiScreenPendingInvitation.func_130046_h(this.field_130131_a).getSession()); mcoclient.func_130107_a(((PendingInvite)GuiScreenPendingInvitation.func_130042_e(this.field_130131_a).get(GuiScreenPendingInvitation.func_130049_d(this.field_130131_a))).field_130094_a); GuiScreenPendingInvitation.func_130040_f(this.field_130131_a); } catch (ExceptionMcoService exceptionmcoservice) { GuiScreenPendingInvitation.func_130055_i(this.field_130131_a).getLogAgent().logSevere(exceptionmcoservice.toString()); } }
public void run() { try { McoClient mcoclient = new McoClient(GuiScreenPendingInvitation.func_130041_c(this.field_130132_a).getSession()); mcoclient.func_130109_b(((PendingInvite)GuiScreenPendingInvitation.func_130042_e(this.field_130132_a).get(GuiScreenPendingInvitation.func_130049_d(this.field_130132_a))).field_130094_a); GuiScreenPendingInvitation.func_130040_f(this.field_130132_a); } catch (ExceptionMcoService exceptionmcoservice) { GuiScreenPendingInvitation.func_130056_g(this.field_130132_a).getLogAgent().logSevere(exceptionmcoservice.toString()); } }
private void func_148382_b(int p_148382_1_, int p_148382_2_, int p_148382_3_, int p_148382_4_, Tessellator p_148382_5_) { PendingInvite var6 = (PendingInvite)GuiScreenPendingInvitation.this.field_146734_i.get(p_148382_1_); GuiScreenPendingInvitation.this.drawString(GuiScreenPendingInvitation.this.fontRendererObj, var6.field_148774_b, p_148382_2_ + 2, p_148382_3_ + 1, 16777215); GuiScreenPendingInvitation.this.drawString(GuiScreenPendingInvitation.this.fontRendererObj, var6.field_148775_c, p_148382_2_ + 2, p_148382_3_ + 12, 7105644); }
private void func_130119_b(int p_130119_1_, int p_130119_2_, int p_130119_3_, int p_130119_4_, Tessellator p_130119_5_) { PendingInvite var6 = (PendingInvite)GuiScreenPendingInvitation.func_130042_e(this.field_130120_a).get(p_130119_1_); this.field_130120_a.func_73731_b(GuiScreenPendingInvitation.func_130045_k(this.field_130120_a), var6.field_130092_b, p_130119_2_ + 2, p_130119_3_ + 1, 16777215); this.field_130120_a.func_73731_b(GuiScreenPendingInvitation.func_130052_l(this.field_130120_a), var6.field_130093_c, p_130119_2_ + 2, p_130119_3_ + 12, 7105644); }
private void func_130119_b(int par1, int par2, int par3, int par4, Tessellator par5Tessellator) { PendingInvite pendinginvite = (PendingInvite)GuiScreenPendingInvitation.func_130042_e(this.field_130120_a).get(par1); this.field_130120_a.drawString(GuiScreenPendingInvitation.func_130045_k(this.field_130120_a), pendinginvite.field_130092_b, par2 + 2, par3 + 1, 16777215); this.field_130120_a.drawString(GuiScreenPendingInvitation.func_130052_l(this.field_130120_a), pendinginvite.field_130093_c, par2 + 2, par3 + 12, 7105644); }