Search in sources :

Example 1 with MultiplayerServerListWidget

use of net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget in project Client by MatHax.

the class ServerCleanUpScreen method saveServerList.

private void saveServerList() {
    multiplayerScreen.getServerList().saveFile();
    MultiplayerServerListWidget serverListSelector = ((IMultiplayerScreen) multiplayerScreen).getServerListWidget();
    serverListSelector.setSelected(null);
    serverListSelector.setServers(multiplayerScreen.getServerList());
}
Also used : IMultiplayerScreen(mathax.client.mixininterface.IMultiplayerScreen) MultiplayerServerListWidget(net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget)

Aggregations

IMultiplayerScreen (mathax.client.mixininterface.IMultiplayerScreen)1 MultiplayerServerListWidget (net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget)1