当前位置: 首页>>代码示例>>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;未经允许,请勿转载。