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 IRandomRangepublic ResourceLocation getType()
getType in interface IRandomRangepublic static ConstantRange of(int constant)