Пример #1
0
 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;
 }
Пример #2
0
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();
}