Class ArenaConditionComparative
java.lang.Object
de.marcely.bedwars.api.arena.picker.condition.ArenaCondition
de.marcely.bedwars.api.arena.picker.condition.ArenaConditionComparative
Represents a data object for comparing two inputs with an operator.
-
Constructor Summary
ConstructorDescriptionArenaConditionComparative
(ArenaConditionInput leftInput, ArenaConditionComparisonOperator comparisonOperator, ArenaConditionInput rightInput) ArenaConditionComparative
(ArenaConditionVariable<?> variable, ArenaConditionComparisonOperator comparisonOperator, ArenaConditionVariableValue<?> validatingValue) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether the given arena fullfills the conditions or not.boolean
check
(RemoteArena arena) Checks whether the given arena fullfills the conditions or not.Returns the operator of this condition.Get the input of the left side that we want to check.Get the input of the right side that we want to check.toString()
Methods inherited from class de.marcely.bedwars.api.arena.picker.condition.ArenaCondition
filterLocalArenas, filterRemoteArenas
-
Constructor Details
-
ArenaConditionComparative
public ArenaConditionComparative(ArenaConditionVariable<?> variable, ArenaConditionComparisonOperator comparisonOperator, ArenaConditionVariableValue<?> validatingValue) -
ArenaConditionComparative
public ArenaConditionComparative(ArenaConditionInput leftInput, ArenaConditionComparisonOperator comparisonOperator, ArenaConditionInput rightInput)
-
-
Method Details
-
getLeftInput
Get the input of the left side that we want to check.- Returns:
- The input on the left side
-
getRightInput
Get the input of the right side that we want to check.- Returns:
- The input on the right side
-
getComparisonOperator
Returns the operator of this condition.- Returns:
- The operator
-
check
Description copied from class:ArenaCondition
Checks whether the given arena fullfills the conditions or not.- Specified by:
check
in classArenaCondition
- Parameters:
arena
- The local arena that is being checked- Returns:
true
in case it may pass
-
check
Description copied from class:ArenaCondition
Checks whether the given arena fullfills the conditions or not.- Specified by:
check
in classArenaCondition
- Parameters:
arena
- The remote arena that is being checked- Returns:
true
in case it may pass
-
toString
-