net.minecraft.client.options.ServerList Java Examples

The following examples show how to use net.minecraft.client.options.ServerList. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ServerScraperScreen.java    From bleachhack-1.14 with GNU General Public License v3.0 6 votes vote down vote up
public void updatePingers() {
	for (BleachServerPinger ping: new ArrayList<>(pingers)) {
		if (ping.done) {
			checked++;
			if (!ping.failed && !abort) {
				working++;
				try {
					ServerList list = serverScreen.getServerList();
					list.add(ping.server);
					list.saveFile();
				} catch (Exception e) {}
			}
			pingers.remove(ping);
		}
	}
}
 
Example #2
Source File: ServerScraperScreen.java    From bleachhack-1.14 with GNU General Public License v3.0 6 votes vote down vote up
public void updatePingers() {
	for (BleachServerPinger ping: new ArrayList<>(pingers)) {
		if (ping.done) {
			checked++;
			if (!ping.failed && !abort) {
				working++;
				try {
					ServerList list = serverScreen.getServerList();
					list.add(ping.server);
					list.saveFile();
				} catch (Exception e) {}
			}
			pingers.remove(ping);
		}
	}
}
 
Example #3
Source File: ServerScraperScreen.java    From bleachhack-1.14 with GNU General Public License v3.0 6 votes vote down vote up
public void updatePingers() {
	for (BleachServerPinger ping: new ArrayList<>(pingers)) {
		if (ping.done) {
			checked++;
			if (!ping.failed && !abort) {
				working++;
				try {
					ServerList list = serverScreen.getServerList();
					list.add(ping.server);
					list.saveFile();
				} catch (Exception e) {}
			}
			pingers.remove(ping);
		}
	}
}