Class ArenaConditionComparative

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

public final class ArenaConditionComparative extends ArenaCondition
Represents a data object for comparing two inputs with an operator.
  • Constructor Details

  • Method Details

    • getLeftInput

      public ArenaConditionInput getLeftInput()
      Get the input of the left side that we want to check.
      Returns:
      The input on the left side
    • getRightInput

      public ArenaConditionInput getRightInput()
      Get the input of the right side that we want to check.
      Returns:
      The input on the right side
    • getComparisonOperator

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

      public boolean isSimilar(ArenaConditionComparative comp)
      Get whether both comparatives are similar to each other.

      Basically checks for left and right input, if feasable.

      Parameters:
      comp - The other comparative to check
      Returns:
      true if they are similar similar to each other
    • 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