Package net.minecraft.util.math
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.
- Mappings:
Namespace Name official afy
intermediary net/minecraft/class_4801
named net/minecraft/util/math/IntRange
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IntRange(int min, int max)
-
Method Summary
-
Field Details
-
min
private final int min- Mappings:
Namespace Name Mixin selector official a
Lafy;a:I
intermediary field_22278
Lnet/minecraft/class_4801;field_22278:I
named min
Lnet/minecraft/util/math/IntRange;min:I
-
max
private final int max- Mappings:
Namespace Name Mixin selector official b
Lafy;b:I
intermediary field_22279
Lnet/minecraft/class_4801;field_22279:I
named max
Lnet/minecraft/util/math/IntRange;max:I
-
-
Constructor Details
-
IntRange
public IntRange(int min, int max)- Mappings:
Namespace Name Mixin selector official <init>
Lafy;<init>(II)V
intermediary <init>
Lnet/minecraft/class_4801;<init>(II)V
named <init>
Lnet/minecraft/util/math/IntRange;<init>(II)V
-
-
Method Details
-
between
- Mappings:
Namespace Name Mixin selector official a
Lafy;a(II)Lafy;
intermediary method_24502
Lnet/minecraft/class_4801;method_24502(II)Lnet/minecraft/class_4801;
named between
Lnet/minecraft/util/math/IntRange;between(II)Lnet/minecraft/util/math/IntRange;
-
choose
- Mappings:
Namespace Name Mixin selector official a
Lafy;a(Ljava/util/Random;)I
intermediary method_24503
Lnet/minecraft/class_4801;method_24503(Ljava/util/Random;)I
named choose
Lnet/minecraft/util/math/IntRange;choose(Ljava/util/Random;)I
-
getMin
public int getMin()- Mappings:
Namespace Name Mixin selector official a
Lafy;a()I
intermediary method_29492
Lnet/minecraft/class_4801;method_29492()I
named getMin
Lnet/minecraft/util/math/IntRange;getMin()I
-
getMax
public int getMax()- Mappings:
Namespace Name Mixin selector official b
Lafy;b()I
intermediary method_29493
Lnet/minecraft/class_4801;method_29493()I
named getMax
Lnet/minecraft/util/math/IntRange;getMax()I
-
toString
-