Search in sources :

Example 6 with GuiConnecting

use of net.minecraft.client.multiplayer.GuiConnecting in project Wurst-MC-1.12-OF by Wurst-Imperium.

the class ServerHook method reconnectToLastServer.

public static void reconnectToLastServer(GuiScreen prevScreen) {
    if (lastServer == null)
        return;
    currentServerIP = lastServer.getServerData().serverIP;
    if (!currentServerIP.contains(":"))
        currentServerIP += ":25565";
    Minecraft mc = Minecraft.getMinecraft();
    mc.displayGuiScreen(new GuiConnecting(prevScreen, mc, lastServer.getServerData()));
}
Also used : GuiConnecting(net.minecraft.client.multiplayer.GuiConnecting) Minecraft(net.minecraft.client.Minecraft) WMinecraft(net.wurstclient.compatibility.WMinecraft)

Example 7 with GuiConnecting

use of net.minecraft.client.multiplayer.GuiConnecting in project Wurst-MC-1.11 by Wurst-Imperium.

the class ServerHook method reconnectToLastServer.

public static void reconnectToLastServer(GuiScreen prevScreen) {
    if (lastServer == null)
        return;
    currentServerIP = lastServer.getServerData().serverIP;
    if (!currentServerIP.contains(":"))
        currentServerIP += ":25565";
    Minecraft mc = Minecraft.getMinecraft();
    mc.displayGuiScreen(new GuiConnecting(prevScreen, mc, lastServer.getServerData()));
}
Also used : GuiConnecting(net.minecraft.client.multiplayer.GuiConnecting) Minecraft(net.minecraft.client.Minecraft) WMinecraft(net.wurstclient.compatibility.WMinecraft)

Aggregations

GuiConnecting (net.minecraft.client.multiplayer.GuiConnecting)7 Minecraft (net.minecraft.client.Minecraft)6 WMinecraft (net.wurstclient.compatibility.WMinecraft)3 ServerData (net.minecraft.client.multiplayer.ServerData)2 IOException (java.io.IOException)1 GuiMainMenu (net.minecraft.client.gui.GuiMainMenu)1 ServerPinger (net.minecraft.client.network.ServerPinger)1 DuplicateModsFoundException (net.minecraftforge.fml.common.DuplicateModsFoundException)1 Java8VersionException (net.minecraftforge.fml.common.Java8VersionException)1 LoaderException (net.minecraftforge.fml.common.LoaderException)1 MissingModsException (net.minecraftforge.fml.common.MissingModsException)1 WrongMinecraftVersionException (net.minecraftforge.fml.common.WrongMinecraftVersionException)1 ModSortingException (net.minecraftforge.fml.common.toposort.ModSortingException)1 GuiWurstMainMenu (net.wurstclient.gui.main.GuiWurstMainMenu)1