コード例 #1
0
ファイル: GuiMainMenu.java プロジェクト: TheRambler/MineGress
  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());
    }
  }
コード例 #2
0
  public void run() {
    McoClient mcoclient =
        new McoClient(GuiScreenBackup.func_110366_a(this.field_111250_a).func_110432_I());

    try {
      GuiScreenBackup.func_110373_a(
          this.field_111250_a,
          mcoclient.func_111232_c(GuiScreenBackup.func_110367_b(this.field_111250_a))
              .field_111223_a);
    } catch (ExceptionMcoService exceptionmcoservice) {
      GuiScreenBackup.func_130030_c(this.field_111250_a)
          .getLogAgent()
          .logSevere(exceptionmcoservice.toString());
    }
  }
コード例 #3
0
  private void func_140005_i() {
    Session session = this.mc.getSession();
    McoClient mcoclient =
        new McoClient(
            session.getSessionID(),
            session.getUsername(),
            "1.7.2",
            Minecraft.getMinecraft().getProxy());

    try {
      if (mcoclient.func_148695_c().booleanValue()) {
        this.mc.displayGuiScreen(new GuiScreenClientOutdated(this));
      } else {
        this.mc.displayGuiScreen(new GuiScreenOnlineServers(this));
      }
    } catch (ExceptionMcoService exceptionmcoservice) {
      logger.error("Couldn\'t connect to realms");
    } catch (IOException ioexception) {
      logger.error("Couldn\'t connect to realms");
    }
  }