public final class ConstantRange extends java.lang.Object implements IRandomRange
Modifier and Type | Class and Description |
---|---|
static class |
ConstantRange.Serializer |
Modifier and Type | Field and Description |
---|---|
private int |
value |
BINOMIAL, CONSTANT, UNIFORM
Constructor and Description |
---|
ConstantRange(int value) |
Modifier and Type | Method and Description |
---|---|
int |
generateInt(java.util.Random rand) |
ResourceLocation |
getType() |
static ConstantRange |
of(int constant) |
public int generateInt(java.util.Random rand)
generateInt
in interface IRandomRange
public ResourceLocation getType()
getType
in interface IRandomRange
public static ConstantRange of(int constant)