Class BinomialDistributionGenerator
java.lang.Object
net.minecraft.world.level.storage.loot.providers.number.BinomialDistributionGenerator
- All Implemented Interfaces:
LootContextUser
,NumberProvider
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final NumberProvider
(package private) final NumberProvider
-
Constructor Summary
ConstructorsConstructorDescriptionBinomialDistributionGenerator
(NumberProvider p_165656_, NumberProvider p_165657_) -
Method Summary
Modifier and TypeMethodDescriptionbinomial
(int p_165660_, float p_165661_) float
getFloat
(LootContext p_165666_) int
getInt
(LootContext p_165663_) Set<LootContextParam<?>>
getType()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
validate
-
Field Details
-
n
-
p
-
-
Constructor Details
-
BinomialDistributionGenerator
BinomialDistributionGenerator(NumberProvider p_165656_, NumberProvider p_165657_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceNumberProvider
-
getInt
- Specified by:
getInt
in interfaceNumberProvider
-
getFloat
- Specified by:
getFloat
in interfaceNumberProvider
-
binomial
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceLootContextUser
-