Class WeightedListInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.WeightedListInt
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<WeightedListInt> private final SimpleWeightedRandomList
<IntProvider> private final int
private final int
Fields inherited from class net.minecraft.util.valueproviders.IntProvider
NON_NEGATIVE_CODEC, POSITIVE_CODEC
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.util.valueproviders.IntProvider
codec, validateCodec
-
Field Details
-
CODEC
-
distribution
-
minValue
private final int minValue -
maxValue
private final int maxValue
-
-
Constructor Details
-
WeightedListInt
-
-
Method Details
-
sample
- Specified by:
sample
in classIntProvider
-
getMinValue
public int getMinValue()- Specified by:
getMinValue
in classIntProvider
-
getMaxValue
public int getMaxValue()- Specified by:
getMaxValue
in classIntProvider
-
getType
- Specified by:
getType
in classIntProvider
-