Package net.minecraft.loot
Class RandomValueRange
- java.lang.Object
-
- net.minecraft.loot.RandomValueRange
-
- All Implemented Interfaces:
IRandomRange
public class RandomValueRange extends java.lang.Object implements IRandomRange
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RandomValueRange.Serializer
-
Constructor Summary
Constructors Constructor Description RandomValueRange(float p_i46630_1_)
RandomValueRange(float p_i46629_1_, float p_i46629_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RandomValueRange
between(float p_215837_0_, float p_215837_1_)
float
getFloat(java.util.Random p_186507_1_)
int
getInt(java.util.Random p_186511_1_)
float
getMax()
float
getMin()
ResourceLocation
getType()
boolean
matchesValue(int p_186510_1_)
-
-
-
Method Detail
-
between
public static RandomValueRange between(float p_215837_0_, float p_215837_1_)
-
getMin
public float getMin()
-
getMax
public float getMax()
-
getInt
public int getInt(java.util.Random p_186511_1_)
- Specified by:
getInt
in interfaceIRandomRange
-
getFloat
public float getFloat(java.util.Random p_186507_1_)
-
matchesValue
public boolean matchesValue(int p_186510_1_)
-
getType
public ResourceLocation getType()
- Specified by:
getType
in interfaceIRandomRange
-
-