public final class ConstantRange extends java.lang.Object implements IRandomRange
修飾子とタイプ | クラスと説明 |
---|---|
static class |
ConstantRange.Serializer |
BINOMIAL, CONSTANT, UNIFORM
コンストラクタと説明 |
---|
ConstantRange(int value) |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
generateInt(java.util.Random rand) |
ResourceLocation |
getType() |
static ConstantRange |
of(int constant) |
public int generateInt(java.util.Random rand)
generateInt
インタフェース内 IRandomRange
public ResourceLocation getType()
getType
インタフェース内 IRandomRange
public static ConstantRange of(int constant)