Class WeightedListInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.WeightedListInt
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WeightedListInt>private final SimpleWeightedRandomList<IntProvider>private final intprivate final intFields inherited from class net.minecraft.util.valueproviders.IntProvider
NON_NEGATIVE_CODEC, POSITIVE_CODEC - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class net.minecraft.util.valueproviders.IntProvider
codec, codec 
- 
Field Details
- 
CODEC
 - 
distribution
 - 
minValue
private final int minValue - 
maxValue
private final int maxValue 
 - 
 - 
Constructor Details
- 
WeightedListInt
 
 - 
 - 
Method Details
- 
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
 
 -