Class FloatRange

java.lang.Object
net.minestom.server.utils.math.Range<Float>
net.minestom.server.utils.math.FloatRange

public class FloatRange extends Range<Float>
  • Constructor Details

    • FloatRange

      public FloatRange(Float minimum, Float maximum)
    • FloatRange

      public FloatRange(Float value)
  • Method Details

    • isInRange

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