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

public record EnchantmentLevelProvider

implements NumberProvider

fas
net.minecraft.world.level.storage.loot.providers.number.EnchantmentLevelProvider
net.minecraft.class_9753
net.minecraft.loot.provider.number.EnchantmentLevelLootNumberProvider
net.minecraft.world.level.storage.loot.providers.number.EnchantmentLevelProvider

Field summary

Modifier and TypeField
private final LevelBasedValue
b
amount
comp_2784
amount
public static final com.mojang.serialization.MapCodec<EnchantmentLevelProvider>
a
CODEC
field_51813
CODEC

Constructor summary

ModifierConstructor
public (LevelBasedValue arg0)

Method summary

Modifier and TypeMethod
public float
b(ewp arg0)
getFloat(LootContext arg0)
method_32454(class_47 arg0)
nextFloat(LootContext arg0)
public LootNumberProviderType
b()
getType()
method_365()
getType()
public static EnchantmentLevelProvider
a(deg arg0)
forEnchantmentLevel(LevelBasedValue arg0)
method_60313(class_9704 arg0)
create(EnchantmentLevelBasedValue amount)
public LevelBasedValue
c()
amount()
comp_2784()
amount()