Search in sources :

Example 1 with ConnectingGui

use of com.almuradev.almura.feature.menu.main.ConnectingGui in project Almura by AlmuraDev.

the class MultiplayerScreen method join.

private void join() {
    // If we don't have a selected server or the server isn't online then don't continue
    final ServerEntry entry = this.serverList.getSelectedItem();
    if (entry == null || entry.status == ServerStatus.OFFLINE || entry.status == ServerStatus.RESTARTING) {
        return;
    }
    FMLClientHandler.instance().setupServerList();
    new ConnectingGui(this, new ServerData(entry.name, entry.address + ":" + entry.port, false)).display();
}
Also used : ConnectingGui(com.almuradev.almura.feature.menu.main.ConnectingGui) ServerData(net.minecraft.client.multiplayer.ServerData)

Aggregations

ConnectingGui (com.almuradev.almura.feature.menu.main.ConnectingGui)1 ServerData (net.minecraft.client.multiplayer.ServerData)1