Class WeightedListInt
java.lang.Object
net.minecraft.util.valueproviders.WeightedListInt
- All Implemented Interfaces:
IntProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WeightedList<IntProvider> static final MapCodec<WeightedListInt> private final intprivate final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAP_CODEC
-
distribution
-
minValue
private final int minValue -
maxValue
private final int maxValue
-
-
Constructor Details
-
WeightedListInt
-
-
Method Details
-
sample
- Specified by:
samplein interfaceIntProvider
-
minInclusive
public int minInclusive()- Specified by:
minInclusivein interfaceIntProvider
-
maxInclusive
public int maxInclusive()- Specified by:
maxInclusivein interfaceIntProvider
-
codec
- Specified by:
codecin interfaceIntProvider
-