Class ConstantInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.ConstantInt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ConstantInt> private final intstatic final ConstantIntFields inherited from class net.minecraft.util.valueproviders.IntProvider
NON_NEGATIVE_CODEC, POSITIVE_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetType()intgetValue()static ConstantIntof(int p_146484_) intsample(RandomSource p_216854_) toString()Methods inherited from class net.minecraft.util.valueproviders.IntProvider
codec, validateCodec
-
Field Details
-
ZERO
-
CODEC
-
value
private final int value
-
-
Constructor Details
-
ConstantInt
private ConstantInt(int p_146481_)
-
-
Method Details
-
of
-
getValue
public int getValue() -
sample
- Specified by:
samplein classIntProvider
-
getMinValue
public int getMinValue()- Specified by:
getMinValuein classIntProvider
-
getMaxValue
public int getMaxValue()- Specified by:
getMaxValuein classIntProvider
-
getType
- Specified by:
getTypein classIntProvider
-
toString
-