net.minecraft.world.level.storage.loot.functions

public class EnchantWithLevelsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

fcs
net.minecraft.world.level.storage.loot.functions.EnchantWithLevelsFunction
net.minecraft.class_106

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<EnchantWithLevelsFunction>
a
CODEC
field_45825
private final NumberProvider
b
levels
field_1026
private final Optional<HolderSet<Enchantment>>
c
options
field_51796

Constructor summary

ModifierConstructor
(List<LootItemCondition> arg0, NumberProvider arg1, Optional<HolderSet<Enchantment>> arg2)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<EnchantWithLevelsFunction>
b()
getType()
method_29321()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
public ItemStack
a(dba arg0, fbo arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
public static EnchantWithLevelsFunction$Builder
a(jk$a arg0, fft arg1)
enchantWithLevels(HolderLookup$Provider arg0, NumberProvider arg1)
method_481(class_7225$class_7874 arg0, class_5658 arg1)