Class WeightedListInt
java.lang.Object
net.minecraft.util.valueproviders.WeightedListInt
- All Implemented Interfaces:
IntProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WeightedList<IntProvider> static final com.mojang.serialization.MapCodec<WeightedListInt> private final intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<WeightedListInt> codec()intintintsample(RandomSource random)
-
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
-