Package net.minecraft.loot
Class ConstantRange
- java.lang.Object
-
- net.minecraft.loot.ConstantRange
-
- All Implemented Interfaces:
IRandomRange
public final class ConstantRange extends java.lang.Object implements IRandomRange
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConstantRange.Serializer
-
Field Summary
Fields Modifier and Type Field Description private int
value
-
Fields inherited from interface net.minecraft.loot.IRandomRange
BINOMIAL, CONSTANT, UNIFORM
-
-
Constructor Summary
Constructors Constructor Description ConstantRange(int p_i51275_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConstantRange
exactly(int p_215835_0_)
int
getInt(java.util.Random p_186511_1_)
ResourceLocation
getType()
-
-
-
Method Detail
-
getInt
public int getInt(java.util.Random p_186511_1_)
- Specified by:
getInt
in interfaceIRandomRange
-
getType
public ResourceLocation getType()
- Specified by:
getType
in interfaceIRandomRange
-
exactly
public static ConstantRange exactly(int p_215835_0_)
-
-