Class Range

java.lang.Object
com.hypixel.hytale.math.Range

public class Range extends Object
Represents a range with minimum and maximum float values.
  • Constructor Details

    • Range

      public Range()
      Empty Constructor for a Range.

      Sets min and max to 0.

    • Range

      public Range(float min, float max)
      Default Constructor for a Range.
      Parameters:
      min - The provided minimum value.
      max - The provided maximum value.
  • Method Details

    • getMin

      public float getMin()
      Returns:
      the minimum value of the range.
    • getMax

      public float getMax()
      Returns:
      the maximum value of the range.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object