Class ArenaConditionComparative

java.lang.Object
de.marcely.bedwars.api.arena.picker.condition.ArenaCondition
de.marcely.bedwars.api.arena.picker.condition.ArenaConditionComparative

public class ArenaConditionComparative extends ArenaCondition
Represents a basic condition persisting of a variable, an operator and the value that we are checking the variable with.
  • Constructor Details

  • Method Details

    • getVariable

      public ArenaConditionVariable<?> getVariable()
      Returns the variable (or the variable value fetcher given by arena) of this condition.
      Returns:
      The variable
    • getComparisonOperator

      public ArenaConditionComparisonOperator getComparisonOperator()
      Returns the operator of this condition.
      Returns:
      The operator
    • getValidatingValue

      public ArenaConditionVariableValue<?> getValidatingValue()
      Returns the value that we are comparing with.
      Returns:
      The value
    • check

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

      public boolean check(RemoteArena arena)
      Description copied from class: ArenaCondition
      Checks whether the given arena fullfills the conditions or not.
      Specified by:
      check in class ArenaCondition
      Parameters:
      arena - The remote arena that is being checked
      Returns:
      true in case it may pass
    • toString

      public String toString()
      Overrides:
      toString in class Object