public boolean matches(BotManager manager, User user) { if (manager != managerReceiver) return false; for (Pair<IdentHandler, String> pair : dataReceiver) { if (!Util.equals(pair.get1().account(user), pair.get2())) return false; } return true; }
public abstract class WorldGen { public static Map<String, WorldGen> tagMap = Util.syncedMap(String.class, WorldGen.class); public final String tag; public WorldGen(String tag) { this.tag = tag; } public abstract Vector2i getWorldSize(); public abstract World generateWorld(); }