Java 类net.minecraft.client.mco.ExceptionMcoService 实例源码

项目:Resilience-Client-Source    文件:GuiScreenBackup.java   
/**
 * Adds the buttons (and other controls) to the screen in question.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();
    this.field_146844_r = new GuiScreenBackup.SelectionList();
    (new Thread("MCO Backup Requester #" + field_146845_a.incrementAndGet())
    {
        private static final String __OBFID = "CL_00000767";
        public void run()
        {
            Session var1 = GuiScreenBackup.this.mc.getSession();
            McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

            try
            {
                GuiScreenBackup.this.field_146847_i = var2.func_148704_d(GuiScreenBackup.this.field_146846_h).theBackupList;
            }
            catch (ExceptionMcoService var4)
            {
                GuiScreenBackup.logger.error("Couldn\'t request backups", var4);
            }
        }
    }).start();
    this.func_146840_h();
}
项目:Resilience-Client-Source    文件:GuiScreenBackup.java   
private void func_146821_q()
{
    Session var1 = this.mc.getSession();
    McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

    try
    {
        String var3 = var2.func_148708_h(this.field_146846_h);
        Clipboard var4 = Toolkit.getDefaultToolkit().getSystemClipboard();
        var4.setContents(new StringSelection(var3), (ClipboardOwner)null);
        this.func_146823_a(var3);
    }
    catch (ExceptionMcoService var5)
    {
        logger.error("Couldn\'t download world data");
    }
}
项目:Resilience-Client-Source    文件:GuiScreenMcoWorldTemplate.java   
/**
 * Adds the buttons (and other controls) to the screen in question.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();
    this.field_146957_r = new GuiScreenMcoWorldTemplate.SelectionList();
    (new Thread("MCO World Creator #" + field_146958_a.incrementAndGet())
    {
        private static final String __OBFID = "CL_00000787";
        public void run()
        {
            Session var1 = GuiScreenMcoWorldTemplate.this.mc.getSession();
            McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

            try
            {
                GuiScreenMcoWorldTemplate.this.field_146960_i = var2.func_148693_e().field_148782_a;
            }
            catch (ExceptionMcoService var4)
            {
                GuiScreenMcoWorldTemplate.logger.error("Couldn\'t fetch templates");
            }
        }
    }).start();
    this.func_146952_h();
}
项目:Resilience-Client-Source    文件:GuiScreenPendingInvitation.java   
/**
 * Adds the buttons (and other controls) to the screen in question.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();
    this.field_146733_h = new GuiScreenPendingInvitation.List();
    (new Thread("MCO List Invites #" + field_146732_a.incrementAndGet())
    {
        private static final String __OBFID = "CL_00000798";
        public void run()
        {
            Session var1 = GuiScreenPendingInvitation.this.mc.getSession();
            McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

            try
            {
                GuiScreenPendingInvitation.this.field_146734_i = var2.func_148710_g().field_148768_a;
            }
            catch (ExceptionMcoService var4)
            {
                GuiScreenPendingInvitation.logger.error("Couldn\'t list invites");
            }
        }
    }).start();
    this.func_146728_h();
}
项目:Resilience-Client-Source    文件:GuiScreenPendingInvitation.java   
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();
    }
}
项目:Resilience-Client-Source    文件:GuiScreenPendingInvitation.java   
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();
    }
}
项目:Resilience-Client-Source    文件:GuiScreenSubscription.java   
private void func_146778_a(long p_146778_1_)
{
    Session var3 = this.mc.getSession();
    McoClient var4 = new McoClient(var3.getSessionID(), var3.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

    try
    {
        ValueObjectSubscription var5 = var4.func_148705_g(p_146778_1_);
        this.field_146785_r = var5.field_148789_b;
        this.field_146784_s = this.func_146776_b(var5.field_148790_a);
    }
    catch (ExceptionMcoService var6)
    {
        logger.error("Couldn\'t get subscription");
    }
    catch (IOException var7)
    {
        logger.error("Couldn\'t parse response subscribing");
    }
}
项目:Resilience-Client-Source    文件:GuiScreenBuyRealms.java   
private void func_146816_h()
{
    Session var1 = this.mc.getSession();
    final McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());
    (new Thread()
    {
        private static final String __OBFID = "CL_00000771";
        public void run()
        {
            try
            {
                GuiScreenBuyRealms.this.field_146820_h = var2.func_148690_i();
            }
            catch (ExceptionMcoService var2x)
            {
                GuiScreenBuyRealms.logger.error("Could not get stat");
            }
        }
    }).start();
}
项目:Resilience-Client-Source    文件:GuiScreenOnlineServers.java   
private McoServer func_146677_c(long p_146677_1_)
{
    Session var3 = this.mc.getSession();
    McoClient var4 = new McoClient(var3.getSessionID(), var3.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

    try
    {
        return var4.func_148709_a(p_146677_1_);
    }
    catch (ExceptionMcoService var6)
    {
        logger.error("Couldn\'t get own world");
    }
    catch (IOException var7)
    {
        logger.error("Couldn\'t parse response getting own world");
    }

    return null;
}
项目:Resilience-Client-Source    文件:GuiScreenEditOnlineWorld.java   
private void func_146853_g()
{
    Session var1 = this.mc.getSession();
    McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

    try
    {
        String var3 = this.field_146863_h.getText() != null && !this.field_146863_h.getText().trim().equals("") ? this.field_146863_h.getText() : null;
        var2.func_148689_a(this.field_146861_r.field_148812_a, this.field_146864_i.getText(), var3, this.field_146854_w.field_148402_e, this.field_146854_w.field_148399_f);
        this.field_146861_r.func_148803_a(this.field_146864_i.getText());
        this.field_146861_r.func_148804_b(this.field_146863_h.getText());
        this.field_146861_r.field_148820_i = this.field_146854_w.field_148402_e;
        this.field_146861_r.field_148817_j = this.field_146854_w.field_148399_f;
        this.mc.displayGuiScreen(new GuiScreenConfigureWorld(this.field_146857_g, this.field_146861_r));
    }
    catch (ExceptionMcoService var4)
    {
        logger.error("Couldn\'t edit world");
    }
    catch (UnsupportedEncodingException var5)
    {
        logger.error("Couldn\'t edit world");
    }
}
项目:Resilience-Client-Source    文件:GuiScreenReamlsTOS.java   
private void func_146768_g()
{
    Session var1 = this.mc.getSession();
    McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

    try
    {
        var2.func_148714_h();
        GuiScreenLongRunningTask var3 = new GuiScreenLongRunningTask(this.mc, this, new TaskOnlineConnect(this, this.field_146771_g));
        var3.func_146902_g();
        this.mc.displayGuiScreen(var3);
    }
    catch (ExceptionMcoService var4)
    {
        logger.error("Couldn\'t agree to TOS");
    }
}
项目:Resilience-Client-Source    文件:GuiScreenConfigureWorld.java   
private void func_146876_g()
{
    Session var1 = this.mc.getSession();
    McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

    try
    {
        Boolean var3 = var2.func_148692_e(this.field_146885_g.field_148812_a);

        if (var3.booleanValue())
        {
            this.field_146883_D = true;
            this.field_146885_g.field_148808_d = "OPEN";
            this.initGui();
        }
    }
    catch (ExceptionMcoService var4)
    {
        logger.error("Couldn\'t open world");
    }
    catch (IOException var5)
    {
        logger.error("Could not parse response opening world");
    }
}
项目:Resilience-Client-Source    文件:GuiScreenConfigureWorld.java   
private void func_146882_h()
{
    Session var1 = this.mc.getSession();
    McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

    try
    {
        boolean var3 = var2.func_148700_f(this.field_146885_g.field_148812_a).booleanValue();

        if (var3)
        {
            this.field_146883_D = true;
            this.field_146885_g.field_148808_d = "CLOSED";
            this.initGui();
        }
    }
    catch (ExceptionMcoService var4)
    {
        logger.error("Couldn\'t close world");
    }
    catch (IOException var5)
    {
        logger.error("Could not parse response closing world");
    }
}
项目:Resilience-Client-Source    文件:GuiMainMenu.java   
protected void func_140005_i()
{
    Session var1 = this.mc.getSession();
    McoClient var2 = new McoClient(var1.getSessionID(), var1.getUsername(), "1.7.9", Minecraft.getMinecraft().getProxy());

    try
    {
        if (var2.func_148695_c().booleanValue())
        {
            this.mc.displayGuiScreen(new GuiScreenClientOutdated(this));
        }
        else
        {
            this.mc.displayGuiScreen(new GuiScreenOnlineServers(this));
        }
    }
    catch (ExceptionMcoService var4)
    {
        logger.error("Couldn\'t connect to realms");
    }
    catch (IOException var5)
    {
        logger.error("Couldn\'t connect to realms");
    }
}
项目:RuneCraftery    文件:McoClient.java   
private String func_96377_a(Request p_96377_1_) throws ExceptionMcoService {
   p_96377_1_.func_100006_a("sid", this.field_96390_a);
   p_96377_1_.func_100006_a("user", this.field_100007_c);
   p_96377_1_.func_100006_a("version", "1.6.4");

   try {
      int var2 = p_96377_1_.func_96362_a();
      if(var2 == 503) {
         int var3 = p_96377_1_.func_111221_b();
         throw new ExceptionRetryCall(var3);
      } else if(var2 >= 200 && var2 < 300) {
         return p_96377_1_.func_96364_c();
      } else {
         throw new ExceptionMcoService(p_96377_1_.func_96362_a(), p_96377_1_.func_96364_c(), p_96377_1_.func_130110_g());
      }
   } catch (ExceptionMcoHttp var4) {
      throw new ExceptionMcoService(500, "Server not available!", -1);
   }
}
项目:RuneCraftery    文件:McoServerListUpdateTask.java   
private void func_140062_a() {
   try {
      if(McoServerList.func_100014_a(this.field_140067_a) != null) {
         this.field_140066_b = new McoClient(McoServerList.func_100014_a(this.field_140067_a));
         List var1 = this.field_140066_b.func_96382_a().field_96430_d;
         if(var1 != null) {
            this.func_140065_a(var1);
            McoServerList.func_98247_a(this.field_140067_a, var1);
         }
      }
   } catch (ExceptionMcoService var2) {
      Minecraft.func_71410_x().func_98033_al().func_98232_c(var2.toString());
   } catch (IOException var3) {
      Minecraft.func_71410_x().func_98033_al().func_98236_b("Realms: could not parse response from server");
   }

}
项目:RuneCraftery    文件:GuiScreenBackupRestoreTask.java   
public void run() {
   this.func_96576_b(I18n.func_135053_a("mco.backup.restoring"));

   try {
      McoClient var1 = new McoClient(this.func_96578_b().func_110432_I());
      var1.func_111235_c(GuiScreenBackup.func_110367_b(this.field_111255_a), this.field_111254_c.field_110727_a);

      try {
         Thread.sleep(1000L);
      } catch (InterruptedException var3) {
         Thread.currentThread().interrupt();
      }

      this.func_96578_b().func_71373_a(GuiScreenBackup.func_130031_d(this.field_111255_a));
   } catch (ExceptionMcoService var4) {
      GuiScreenBackup.func_130035_e(this.field_111255_a).func_98033_al().func_98232_c(var4.toString());
      this.func_96575_a(var4.toString());
   } catch (Exception var5) {
      this.func_96575_a(var5.getLocalizedMessage());
   }

}
项目:RuneCraftery    文件:TaskResetWorld.java   
public void run() {
   McoClient var1 = new McoClient(this.func_96578_b().func_110432_I());
   String var2 = I18n.func_135053_a("mco.reset.world.resetting.screen.title");
   this.func_96576_b(var2);

   try {
      if(this.field_111252_e != null) {
         var1.func_111233_e(this.field_96591_c, this.field_111252_e.field_110734_a);
      } else {
         var1.func_96376_d(this.field_96591_c, this.field_104066_d);
      }

      GuiScreenResetWorld.func_96147_b(this.field_96592_a).func_71373_a(GuiScreenResetWorld.func_96148_a(this.field_96592_a));
   } catch (ExceptionMcoService var4) {
      GuiScreenResetWorld.func_130025_c(this.field_96592_a).func_98033_al().func_98232_c(var4.toString());
      this.func_96575_a(var4.toString());
   } catch (Exception var5) {
      GuiScreenResetWorld.func_130024_d(this.field_96592_a).func_98033_al().func_98236_b("Realms: ");
      this.func_96575_a(var5.toString());
   }

}
项目:RuneCraftery    文件:ThreadOnlineScreen.java   
public void run() {
   try {
      McoServer var1 = GuiScreenOnlineServers.func_140011_a(this.field_98173_a, GuiScreenOnlineServers.func_140041_a(this.field_98173_a));
      if(var1 != null) {
         McoClient var2 = new McoClient(GuiScreenOnlineServers.func_98075_b(this.field_98173_a).func_110432_I());
         GuiScreenOnlineServers.func_140040_h().func_140058_a(var1);
         GuiScreenOnlineServers.func_140013_c(this.field_98173_a).remove(var1);
         var2.func_140055_c(var1.field_96408_a);
         GuiScreenOnlineServers.func_140040_h().func_140058_a(var1);
         GuiScreenOnlineServers.func_140013_c(this.field_98173_a).remove(var1);
         GuiScreenOnlineServers.func_140017_d(this.field_98173_a);
      }
   } catch (ExceptionMcoService var3) {
      GuiScreenOnlineServers.func_98076_f(this.field_98173_a).func_98033_al().func_98232_c(var3.toString());
   }

}
项目:RuneCraftery    文件:GuiScreenEditOnlineWorld.java   
private void func_96200_g() {
   McoClient var1 = new McoClient(this.field_73882_e.func_110432_I());

   try {
      String var2 = this.field_96203_c.func_73781_b() != null && !this.field_96203_c.func_73781_b().trim().equals("")?this.field_96203_c.func_73781_b():null;
      var1.func_96384_a(this.field_96205_n.field_96408_a, this.field_96201_d.func_73781_b(), var2, this.field_104051_s.field_104076_e, this.field_104051_s.field_104073_f);
      this.field_96205_n.func_96399_a(this.field_96201_d.func_73781_b());
      this.field_96205_n.func_96400_b(this.field_96203_c.func_73781_b());
      this.field_96205_n.field_110729_i = this.field_104051_s.field_104076_e;
      this.field_96205_n.field_110728_j = this.field_104051_s.field_104073_f;
      this.field_73882_e.func_71373_a(new GuiScreenConfigureWorld(this.field_96202_b, this.field_96205_n));
   } catch (ExceptionMcoService var3) {
      this.field_73882_e.func_98033_al().func_98232_c(var3.toString());
   } catch (UnsupportedEncodingException var4) {
      this.field_73882_e.func_98033_al().func_98236_b("Realms: " + var4.getLocalizedMessage());
   }

}
项目:RuneCraftery    文件:GuiScreenConfigureWorld.java   
private void func_96268_g() {
   McoClient var1 = new McoClient(this.field_73882_e.func_110432_I());

   try {
      Boolean var2 = var1.func_96383_b(this.field_96280_b.field_96408_a);
      if(var2.booleanValue()) {
         this.field_102020_y = true;
         this.field_96280_b.field_96404_d = "OPEN";
         this.func_73866_w_();
      }
   } catch (ExceptionMcoService var3) {
      this.field_73882_e.func_98033_al().func_98232_c(var3.toString());
   } catch (IOException var4) {
      this.field_73882_e.func_98033_al().func_98236_b("Realms: could not parse response");
   }

}
项目:RuneCraftery    文件:GuiScreenConfigureWorld.java   
private void func_96275_h() {
   McoClient var1 = new McoClient(this.field_73882_e.func_110432_I());

   try {
      boolean var2 = var1.func_96378_c(this.field_96280_b.field_96408_a).booleanValue();
      if(var2) {
         this.field_102020_y = true;
         this.field_96280_b.field_96404_d = "CLOSED";
         this.func_73866_w_();
      }
   } catch (ExceptionMcoService var3) {
      this.field_73882_e.func_98033_al().func_98232_c(var3.toString());
   } catch (IOException var4) {
      this.field_73882_e.func_98033_al().func_98236_b("Realms: could not parse response");
   }

}
项目:RuneCraftery    文件:GuiScreenConfigureWorld.java   
public void func_73878_a(boolean p_73878_1_, int p_73878_2_) {
   if(p_73878_2_ == 3) {
      if(p_73878_1_) {
         McoClient var3 = new McoClient(this.field_73882_e.func_110432_I());

         try {
            var3.func_96381_a(this.field_96280_b.field_96408_a, this.field_96283_q);
         } catch (ExceptionMcoService var5) {
            this.field_73882_e.func_98033_al().func_98232_c(var5.toString());
         }

         this.func_96267_d(this.field_96284_p);
      }

      this.field_73882_e.func_71373_a(new GuiScreenConfigureWorld(this.field_96285_a, this.field_96280_b));
   }

   if(p_73878_2_ == 1) {
      if(p_73878_1_) {
         this.func_96275_h();
      }

      this.field_73882_e.func_71373_a(this);
   }

}
项目:RuneCraftery    文件:GuiMainMenu.java   
private void func_140005_i() {
   McoClient var1 = new McoClient(this.field_73882_e.func_110432_I());

   try {
      if(var1.func_140054_c().booleanValue()) {
         this.field_73882_e.func_71373_a(new GuiScreenClientOutdated(this));
      } else {
         this.field_73882_e.func_71373_a(new GuiScreenOnlineServers(this));
      }
   } catch (ExceptionMcoService var3) {
      this.field_73882_e.func_98033_al().func_98232_c(var3.toString());
   } catch (IOException var4) {
      this.field_73882_e.func_98033_al().func_98232_c(var4.getLocalizedMessage());
   }

}
项目:RuneCraftery    文件:GuiScreenSubscription.java   
private void func_98063_a(long par1)
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        ValueObjectSubscription valueobjectsubscription = mcoclient.func_98177_f(par1);
        this.field_98068_n = valueobjectsubscription.field_98170_b;
        this.field_98069_o = this.func_98062_b(valueobjectsubscription.field_98171_a);
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        Minecraft.getMinecraft().getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        Minecraft.getMinecraft().getLogAgent().logWarning("Realms: could not parse response");
    }
}
项目:RuneCraftery    文件:GuiScreenOnlineServers.java   
private McoServer func_98086_a(long par1)
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        return mcoclient.func_98176_a(par1);
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        this.mc.getLogAgent().logWarning("Realms: could not parse response");
    }

    return null;
}
项目:RuneCraftery    文件:ThreadOnlineScreen.java   
public void run()
{
    try
    {
        McoServer mcoserver = GuiScreenOnlineServers.func_140011_a(this.field_98173_a, GuiScreenOnlineServers.func_140041_a(this.field_98173_a));

        if (mcoserver != null)
        {
            McoClient mcoclient = new McoClient(GuiScreenOnlineServers.func_98075_b(this.field_98173_a).getSession());
            GuiScreenOnlineServers.func_140040_h().func_140058_a(mcoserver);
            GuiScreenOnlineServers.func_140013_c(this.field_98173_a).remove(mcoserver);
            mcoclient.func_140055_c(mcoserver.field_96408_a);
            GuiScreenOnlineServers.func_140040_h().func_140058_a(mcoserver);
            GuiScreenOnlineServers.func_140013_c(this.field_98173_a).remove(mcoserver);
            GuiScreenOnlineServers.func_140017_d(this.field_98173_a);
        }
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        GuiScreenOnlineServers.func_98076_f(this.field_98173_a).getLogAgent().logSevere(exceptionmcoservice.toString());
    }
}
项目:RuneCraftery    文件:GuiScreenEditOnlineWorld.java   
private void func_96200_g()
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        String s = this.field_96203_c.getText() != null && !this.field_96203_c.getText().trim().equals("") ? this.field_96203_c.getText() : null;
        mcoclient.func_96384_a(this.field_96205_n.field_96408_a, this.field_96201_d.getText(), s, this.field_104051_s.field_104076_e, this.field_104051_s.field_104073_f);
        this.field_96205_n.func_96399_a(this.field_96201_d.getText());
        this.field_96205_n.func_96400_b(this.field_96203_c.getText());
        this.field_96205_n.field_110729_i = this.field_104051_s.field_104076_e;
        this.field_96205_n.field_110728_j = this.field_104051_s.field_104073_f;
        this.mc.displayGuiScreen(new GuiScreenConfigureWorld(this.field_96202_b, this.field_96205_n));
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (UnsupportedEncodingException unsupportedencodingexception)
    {
        this.mc.getLogAgent().logWarning("Realms: " + unsupportedencodingexception.getLocalizedMessage());
    }
}
项目:RuneCraftery    文件:GuiScreenConfigureWorld.java   
private void func_96268_g()
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        Boolean obool = mcoclient.func_96383_b(this.field_96280_b.field_96408_a);

        if (obool.booleanValue())
        {
            this.field_102020_y = true;
            this.field_96280_b.field_96404_d = "OPEN";
            this.initGui();
        }
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        this.mc.getLogAgent().logWarning("Realms: could not parse response");
    }
}
项目:RuneCraftery    文件:GuiScreenConfigureWorld.java   
private void func_96275_h()
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        boolean flag = mcoclient.func_96378_c(this.field_96280_b.field_96408_a).booleanValue();

        if (flag)
        {
            this.field_102020_y = true;
            this.field_96280_b.field_96404_d = "CLOSED";
            this.initGui();
        }
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        this.mc.getLogAgent().logWarning("Realms: could not parse response");
    }
}
项目:RuneCraftery    文件:GuiMainMenu.java   
private void func_140005_i()
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        if (mcoclient.func_140054_c().booleanValue())
        {
            this.mc.displayGuiScreen(new GuiScreenClientOutdated(this));
        }
        else
        {
            this.mc.displayGuiScreen(new GuiScreenOnlineServers(this));
        }
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        this.mc.getLogAgent().logSevere(ioexception.getLocalizedMessage());
    }
}
项目:BetterNutritionMod    文件:GuiScreenSubscription.java   
private void func_98063_a(long par1)
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        ValueObjectSubscription valueobjectsubscription = mcoclient.func_98177_f(par1);
        this.field_98068_n = valueobjectsubscription.field_98170_b;
        this.field_98069_o = this.func_98062_b(valueobjectsubscription.field_98171_a);
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        Minecraft.getMinecraft().getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        Minecraft.getMinecraft().getLogAgent().logWarning("Realms: could not parse response");
    }
}
项目:BetterNutritionMod    文件:GuiScreenOnlineServers.java   
private McoServer func_98086_a(long par1)
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        return mcoclient.func_98176_a(par1);
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        this.mc.getLogAgent().logWarning("Realms: could not parse response");
    }

    return null;
}
项目:BetterNutritionMod    文件:ThreadOnlineScreen.java   
public void run()
{
    try
    {
        McoServer mcoserver = GuiScreenOnlineServers.func_140011_a(this.field_98173_a, GuiScreenOnlineServers.func_140041_a(this.field_98173_a));

        if (mcoserver != null)
        {
            McoClient mcoclient = new McoClient(GuiScreenOnlineServers.func_98075_b(this.field_98173_a).getSession());
            GuiScreenOnlineServers.func_140040_h().func_140058_a(mcoserver);
            GuiScreenOnlineServers.func_140013_c(this.field_98173_a).remove(mcoserver);
            mcoclient.func_140055_c(mcoserver.field_96408_a);
            GuiScreenOnlineServers.func_140040_h().func_140058_a(mcoserver);
            GuiScreenOnlineServers.func_140013_c(this.field_98173_a).remove(mcoserver);
            GuiScreenOnlineServers.func_140017_d(this.field_98173_a);
        }
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        GuiScreenOnlineServers.func_98076_f(this.field_98173_a).getLogAgent().logSevere(exceptionmcoservice.toString());
    }
}
项目:BetterNutritionMod    文件:GuiScreenEditOnlineWorld.java   
private void func_96200_g()
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        String s = this.field_96203_c.getText() != null && !this.field_96203_c.getText().trim().equals("") ? this.field_96203_c.getText() : null;
        mcoclient.func_96384_a(this.field_96205_n.field_96408_a, this.field_96201_d.getText(), s, this.field_104051_s.field_104076_e, this.field_104051_s.field_104073_f);
        this.field_96205_n.func_96399_a(this.field_96201_d.getText());
        this.field_96205_n.func_96400_b(this.field_96203_c.getText());
        this.field_96205_n.field_110729_i = this.field_104051_s.field_104076_e;
        this.field_96205_n.field_110728_j = this.field_104051_s.field_104073_f;
        this.mc.displayGuiScreen(new GuiScreenConfigureWorld(this.field_96202_b, this.field_96205_n));
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (UnsupportedEncodingException unsupportedencodingexception)
    {
        this.mc.getLogAgent().logWarning("Realms: " + unsupportedencodingexception.getLocalizedMessage());
    }
}
项目:BetterNutritionMod    文件:GuiScreenConfigureWorld.java   
private void func_96268_g()
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        Boolean obool = mcoclient.func_96383_b(this.field_96280_b.field_96408_a);

        if (obool.booleanValue())
        {
            this.field_102020_y = true;
            this.field_96280_b.field_96404_d = "OPEN";
            this.initGui();
        }
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        this.mc.getLogAgent().logWarning("Realms: could not parse response");
    }
}
项目:BetterNutritionMod    文件:GuiScreenConfigureWorld.java   
private void func_96275_h()
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        boolean flag = mcoclient.func_96378_c(this.field_96280_b.field_96408_a).booleanValue();

        if (flag)
        {
            this.field_102020_y = true;
            this.field_96280_b.field_96404_d = "CLOSED";
            this.initGui();
        }
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        this.mc.getLogAgent().logWarning("Realms: could not parse response");
    }
}
项目:BetterNutritionMod    文件:GuiMainMenu.java   
private void func_140005_i()
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        if (mcoclient.func_140054_c().booleanValue())
        {
            this.mc.displayGuiScreen(new GuiScreenClientOutdated(this));
        }
        else
        {
            this.mc.displayGuiScreen(new GuiScreenOnlineServers(this));
        }
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        this.mc.getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        this.mc.getLogAgent().logSevere(ioexception.getLocalizedMessage());
    }
}
项目:Resilience-Client-Source    文件:GuiScreenCreateOnlineWorld.java   
public void run()
{
    String var1 = I18n.format("mco.create.world.wait", new Object[0]);
    this.func_148417_b(var1);
    Session var2 = GuiScreenCreateOnlineWorld.this.mc.getSession();
    McoClient var3 = new McoClient(var2.getSessionID(), var2.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

    try
    {
        if (this.field_148426_d != null)
        {
            var3.func_148707_a(this.field_148427_c, this.field_148426_d.field_148787_a);
        }
        else
        {
            var3.func_148707_a(this.field_148427_c, "-1");
        }

        GuiScreenCreateOnlineWorld.this.mc.displayGuiScreen(GuiScreenCreateOnlineWorld.this.field_146758_f);
    }
    catch (ExceptionMcoService var5)
    {
        GuiScreenCreateOnlineWorld.logger.error("Couldn\'t create world");
        this.func_148416_a(var5.toString());
    }
    catch (UnsupportedEncodingException var6)
    {
        GuiScreenCreateOnlineWorld.logger.error("Couldn\'t create world");
        this.func_148416_a(var6.getLocalizedMessage());
    }
    catch (Exception var8)
    {
        GuiScreenCreateOnlineWorld.logger.error("Could not create world");
        this.func_148416_a(var8.getLocalizedMessage());
    }
}
项目:Resilience-Client-Source    文件:GuiScreenOnlineServers.java   
public void confirmClicked(boolean par1, int par2)
{
    if (par2 == 3 && par1)
    {
        (new Thread("MCO Configure Requester #" + field_146701_a.incrementAndGet())
        {
            private static final String __OBFID = "CL_00000793";
            public void run()
            {
                try
                {
                    McoServer var1 = GuiScreenOnlineServers.this.func_146691_a(GuiScreenOnlineServers.this.field_146705_v);

                    if (var1 != null)
                    {
                        Session var2 = GuiScreenOnlineServers.this.mc.getSession();
                        McoClient var3 = new McoClient(var2.getSessionID(), var2.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());
                        GuiScreenOnlineServers.field_146703_i.func_148470_a(var1);
                        GuiScreenOnlineServers.this.field_146700_C.remove(var1);
                        var3.func_148698_c(var1.field_148812_a);
                        GuiScreenOnlineServers.field_146703_i.func_148470_a(var1);
                        GuiScreenOnlineServers.this.field_146700_C.remove(var1);
                        GuiScreenOnlineServers.this.func_146685_v();
                    }
                }
                catch (ExceptionMcoService var4)
                {
                    GuiScreenOnlineServers.logger.error("Couldn\'t configure world");
                }
            }
        }).start();
    }
    else if (par2 == 4 && par1)
    {
        this.field_146711_y.func_146138_a("http://realms.minecraft.net/");
    }

    this.mc.displayGuiScreen(this);
}