类 ConstantInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.ConstantInt
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.MapCodec
<ConstantInt> private final int
static final ConstantInt
从类继承的字段 net.minecraft.util.valueproviders.IntProvider
NON_NEGATIVE_CODEC, POSITIVE_CODEC
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
int
getType()
int
getValue()
static ConstantInt
of
(int p_146484_) int
sample
(RandomSource p_216854_) toString()
从类继承的方法 net.minecraft.util.valueproviders.IntProvider
codec, validateCodec
-
字段详细资料
-
ZERO
-
CODEC
-
value
private final int value
-
-
构造器详细资料
-
ConstantInt
private ConstantInt(int p_146481_)
-
-
方法详细资料
-
of
-
getValue
public int getValue() -
sample
- 指定者:
sample
在类中IntProvider
-
getMinValue
public int getMinValue()- 指定者:
getMinValue
在类中IntProvider
-
getMaxValue
public int getMaxValue()- 指定者:
getMaxValue
在类中IntProvider
-
getType
- 指定者:
getType
在类中IntProvider
-
toString
-