Class ArenaCondition
java.lang.Object
de.marcely.bedwars.api.arena.picker.condition.ArenaCondition
- Direct Known Subclasses:
ArenaConditionComparative
,ArenaConditionGroup
A generic condition that checks an arena.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Checks whether the given arena fullfills the conditions or not.abstract boolean
check
(RemoteArena arena) Checks whether the given arena fullfills the conditions or not.final void
filterLocalArenas
(Iterable<Arena> arenas) Filters out all arenas that do not match the given condition.final void
filterRemoteArenas
(Iterable<RemoteArena> arenas) Filters out all arenas that do not match the given condition.
-
Constructor Details
-
ArenaCondition
public ArenaCondition()
-
-
Method Details
-
check
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
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
Filters out all arenas that do not match the given condition.- Parameters:
arenas
- A mutable iterable collection of arenas
-
filterRemoteArenas
Filters out all arenas that do not match the given condition.- Parameters:
arenas
- A mutable iterable collection of arenas
-