本文整理匯總了Java中net.minecraft.client.Minecraft.loadWorld方法的典型用法代碼示例。如果您正苦於以下問題:Java Minecraft.loadWorld方法的具體用法?Java Minecraft.loadWorld怎麽用?Java Minecraft.loadWorld使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.client.Minecraft
的用法示例。
在下文中一共展示了Minecraft.loadWorld方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: GuiConnecting
import net.minecraft.client.Minecraft; //導入方法依賴的package包/類
public GuiConnecting(GuiScreen p_i1181_1_, Minecraft mcIn, ServerData p_i1181_3_)
{
this.mc = mcIn;
this.previousGuiScreen = p_i1181_1_;
ServerAddress serveraddress = ServerAddress.func_78860_a(p_i1181_3_.serverIP);
mcIn.loadWorld((WorldClient)null);
mcIn.setServerData(p_i1181_3_);
this.connect(serveraddress.getIP(), serveraddress.getPort());
}
示例2: GuiConnecting
import net.minecraft.client.Minecraft; //導入方法依賴的package包/類
public GuiConnecting(GuiScreen parent, Minecraft mcIn, ServerData serverDataIn)
{
this.mc = mcIn;
this.previousGuiScreen = parent;
ServerAddress serveraddress = ServerAddress.fromString(serverDataIn.serverIP);
mcIn.loadWorld((WorldClient)null);
mcIn.setServerData(serverDataIn);
this.connect(serveraddress.getIP(), serveraddress.getPort());
}