Class DoubleRange

java.lang.Object
net.minestom.server.utils.math.Range<Double>
net.minestom.server.utils.math.DoubleRange

public class DoubleRange extends Range<Double>
  • Constructor Details

    • DoubleRange

      public DoubleRange(Double minimum, Double maximum)
    • DoubleRange

      public DoubleRange(Double value)
  • Method Details

    • isInRange

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