本文整理汇总了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");
}
}
示例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());
}
}
示例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());
}
}