use of net.minecraft.client.multiplayer.ServerList in project Hyperium by HyperiumClient.
the class HyperiumServerList method saveSingleServer.
public static void saveSingleServer(ServerData serverData) {
ServerList serverlist = new ServerList(Minecraft.getMinecraft());
serverlist.loadServerList();
for (int i = 0; i < serverlist.countServers(); ++i) {
ServerData serverdata = serverlist.getServerData(i);
if (serverdata.serverName.equals(serverData.serverName) && serverdata.serverIP.equals(serverData.serverIP)) {
serverlist.func_147413_a(i, serverData);
break;
}
}
serverlist.saveServerList();
}
Aggregations