Class IntRange

java.lang.Object
net.minecraft.util.math.IntRange

public class IntRange
extends Object
An integer range, inclusive on both ends. Used to choose a random duration of memory.
  • Field Details

    • min

      private final int min
    • max

      private final int max
  • Constructor Details

    • IntRange

      public IntRange​(int min, int max)
  • Method Details

    • between

      public static IntRange between​(int min, int max)
    • choose

      public int choose​(Random random)
    • getMin

      public int getMin()
    • getMax

      public int getMax()
    • toString

      public String toString()
      Overrides:
      toString in class Object