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

public record UniformGenerator

implements NumberProvider

fay
net.minecraft.world.level.storage.loot.providers.number.UniformGenerator
net.minecraft.class_5662
net.minecraft.loot.provider.number.UniformLootNumberProvider
net.minecraft.world.level.storage.loot.providers.number.UniformGenerator

Field summary

Modifier and TypeField
private final NumberProvider
b
min
comp_1900
min
private final NumberProvider
c
max
comp_1901
max
public static final com.mojang.serialization.MapCodec<UniformGenerator>
a
CODEC
field_45891
CODEC

Constructor summary

ModifierConstructor
public (NumberProvider min, NumberProvider max)

Method summary

Modifier and TypeMethod
public LootNumberProviderType
b()
getType()
method_365()
getType()
public static UniformGenerator
a(float arg0, float arg1)
between(float arg0, float arg1)
method_32462(float arg0, float arg1)
create(float min, float max)
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 Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public NumberProvider
c()
min()
comp_1900()
min()
public NumberProvider
d()
max()
comp_1901()
max()