Class ConstantInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.ConstantInt
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConstantInt>private final intstatic final ConstantIntFields inherited from class net.minecraft.util.valueproviders.IntProviderNON_NEGATIVE_CODEC, POSITIVE_CODEC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintintgetType()intgetValue()static ConstantIntof(int p_146484_) intsample(RandomSource p_216854_) toString()Methods inherited from class net.minecraft.util.valueproviders.IntProvidercodec, codec
- 
Field Details- 
ZERO
- 
CODEC
- 
valueprivate final int value
 
- 
- 
Constructor Details- 
ConstantIntprivate ConstantInt(int p_146481_) 
 
- 
- 
Method Details- 
of
- 
getValuepublic int getValue()
- 
sample- Specified by:
- samplein class- IntProvider
 
- 
getMinValuepublic int getMinValue()- Specified by:
- getMinValuein class- IntProvider
 
- 
getMaxValuepublic int getMaxValue()- Specified by:
- getMaxValuein class- IntProvider
 
- 
getType- Specified by:
- getTypein class- IntProvider
 
- 
toString
 
-