本文整理匯總了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());
}
}