Package net.minecraft.loot
Class RandomValueRange
java.lang.Object
net.minecraft.loot.RandomValueRange
- All Implemented Interfaces:
IRandomRange
-
Nested Class Summary
-
Field Summary
Fields inherited from interface net.minecraft.loot.IRandomRange
BINOMIAL, CONSTANT, UNIFORM
-
Constructor Summary
ConstructorDescriptionRandomValueRange
(float p_i46630_1_) RandomValueRange
(float p_i46629_1_, float p_i46629_2_) -
Method Summary
Modifier and TypeMethodDescriptionstatic RandomValueRange
between
(float p_215837_0_, float p_215837_1_) float
int
float
getMax()
float
getMin()
getType()
boolean
matchesValue
(int p_186510_1_)
-
Field Details
-
min
private final float min -
max
private final float max
-
-
Constructor Details
-
RandomValueRange
public RandomValueRange(float p_i46629_1_, float p_i46629_2_) -
RandomValueRange
public RandomValueRange(float p_i46630_1_)
-
-
Method Details
-
between
-
getMin
public float getMin() -
getMax
public float getMax() -
getInt
- Specified by:
getInt
in interfaceIRandomRange
-
getFloat
-
matchesValue
public boolean matchesValue(int p_186510_1_) -
getType
- Specified by:
getType
in interfaceIRandomRange
-