Package net.minecraft.loot
Class RandomValueRange
java.lang.Object
net.minecraft.loot.RandomValueRange
- All Implemented Interfaces:
IRandomRange
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface net.minecraft.loot.IRandomRange
BINOMIAL, CONSTANT, UNIFORM -
Constructor Summary
ConstructorsConstructorDescriptionRandomValueRange(float p_i46630_1_) RandomValueRange(float p_i46629_1_, float p_i46629_2_) -
Method Summary
Modifier and TypeMethodDescriptionstatic RandomValueRangebetween(float p_215837_0_, float p_215837_1_) floatintfloatgetMax()floatgetMin()getType()booleanmatchesValue(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:
getIntin interfaceIRandomRange
-
getFloat
-
matchesValue
public boolean matchesValue(int p_186510_1_) -
getType
- Specified by:
getTypein interfaceIRandomRange
-