Class ShortRange

java.lang.Object
net.minestom.server.utils.math.Range<Short>
net.minestom.server.utils.math.ShortRange

public class ShortRange extends Range<Short>
  • Constructor Details

    • ShortRange

      public ShortRange(Short minimum, Short maximum)
    • ShortRange

      public ShortRange(Short value)
  • Method Details

    • isInRange

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