當前位置: 首頁>>代碼示例>>Java>>正文


Java GuiScreenClientOutdated類代碼示例

本文整理匯總了Java中net.minecraft.client.mco.GuiScreenClientOutdated的典型用法代碼示例。如果您正苦於以下問題:Java GuiScreenClientOutdated類的具體用法?Java GuiScreenClientOutdated怎麽用?Java GuiScreenClientOutdated使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


GuiScreenClientOutdated類屬於net.minecraft.client.mco包,在下文中一共展示了GuiScreenClientOutdated類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: func_140005_i

import net.minecraft.client.mco.GuiScreenClientOutdated; //導入依賴的package包/類
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");
    }
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:26,代碼來源:GuiMainMenu.java

示例2: func_140005_i

import net.minecraft.client.mco.GuiScreenClientOutdated; //導入依賴的package包/類
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());
   }

}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:17,代碼來源:GuiMainMenu.java

示例3: func_140005_i

import net.minecraft.client.mco.GuiScreenClientOutdated; //導入依賴的package包/類
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());
    }
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:25,代碼來源:GuiMainMenu.java


注:本文中的net.minecraft.client.mco.GuiScreenClientOutdated類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。