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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanChecks whether the given arena fullfills the conditions or not.abstract booleancheck(RemoteArena arena) Checks whether the given arena fullfills the conditions or not.final voidfilterLocalArenas(Iterable<Arena> arenas) Filters out all arenas that do not match the given condition.final voidfilterRemoteArenas(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:
truein 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:
truein 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
-