Class ClampedInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.ClampedInt
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ClampedInt>private final intprivate final intprivate final IntProviderFields inherited from class net.minecraft.util.valueproviders.IntProvider
NON_NEGATIVE_CODEC, POSITIVE_CODEC - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintintgetType()static ClampedIntof(IntProvider p_146396_, int p_146397_, int p_146398_) intsample(RandomSource p_216834_) Methods inherited from class net.minecraft.util.valueproviders.IntProvider
codec, codec 
- 
Field Details
- 
CODEC
 - 
source
 - 
minInclusive
private final int minInclusive - 
maxInclusive
private final int maxInclusive 
 - 
 - 
Constructor Details
- 
ClampedInt
 
 - 
 - 
Method Details
- 
of
 - 
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
 
 -