Java源码示例:net.minecraft.client.options.ServerList

示例1
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);
		}
	}
}
 
示例2
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);
		}
	}
}
 
示例3
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);
		}
	}
}