Class IntRange

java.lang.Object
net.minestom.server.utils.math.Range<Integer>
net.minestom.server.utils.math.IntRange

public class IntRange extends Range<Integer>
  • Constructor Details

    • IntRange

      public IntRange(Integer minimum, Integer maximum)
    • IntRange

      public IntRange(Integer value)
  • Method Details

    • isInRange

      public boolean isInRange(Integer value)
      Whether the given value is in range of the minimum and the maximum.
      Specified by:
      isInRange in class Range<Integer>
      Parameters:
      value - The value to be checked.
      Returns:
      true if the value in the range of minimum and maximum, otherwise false.