Class ArenaCondition

java.lang.Object
de.marcely.bedwars.api.arena.picker.condition.ArenaCondition
Direct Known Subclasses:
ArenaConditionComparative, ArenaConditionGroup

public abstract class ArenaCondition extends Object
A generic condition that checks an arena.
  • Constructor Details

    • ArenaCondition

      public ArenaCondition()
  • Method Details

    • check

      public abstract boolean check(Arena arena)
      Checks whether the given arena fullfills the conditions or not.
      Parameters:
      arena - The local arena that is being checked
      Returns:
      true in case it may pass
    • check

      public abstract boolean check(RemoteArena arena)
      Checks whether the given arena fullfills the conditions or not.
      Parameters:
      arena - The remote arena that is being checked
      Returns:
      true in case it may pass
    • filterLocalArenas

      public final void filterLocalArenas(Iterable<Arena> arenas)
      Filters out all arenas that do not match the given condition.
      Parameters:
      arenas - A mutable iterable collection of arenas
    • filterRemoteArenas

      public final void filterRemoteArenas(Iterable<RemoteArena> arenas)
      Filters out all arenas that do not match the given condition.
      Parameters:
      arenas - A mutable iterable collection of arenas