net.minecraft.world.level.storage.loot.providers.number

public record BinomialDistributionGenerator

implements NumberProvider

faq
net.minecraft.world.level.storage.loot.providers.number.BinomialDistributionGenerator
net.minecraft.class_40
net.minecraft.loot.provider.number.BinomialLootNumberProvider
net.minecraft.world.level.storage.loot.providers.number.BinomialDistributionGenerator

Field summary

Modifier and TypeField
private final NumberProvider
b
n
comp_1893
n
private final NumberProvider
c
p
comp_1894
p
public static final com.mojang.serialization.MapCodec<BinomialDistributionGenerator>
a
CODEC
field_45885
CODEC

Constructor summary

ModifierConstructor
public (NumberProvider n, NumberProvider p)

Method summary

Modifier and TypeMethod
public LootNumberProviderType
b()
getType()
method_365()
getType()
public int
a(ewp arg0)
getInt(LootContext arg0)
method_366(class_47 arg0)
nextInt(LootContext arg0)
public float
b(ewp arg0)
getFloat(LootContext arg0)
method_32454(class_47 arg0)
nextFloat(LootContext arg0)
public static BinomialDistributionGenerator
a(int arg0, float arg1)
binomial(int arg0, float arg1)
method_273(int arg0, float arg1)
create(int n, float p)
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public NumberProvider
c()
n()
comp_1893()
n()
public NumberProvider
d()
p()
comp_1894()
p()