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

public class SetEnchantmentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

fdp
net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction
net.minecraft.class_5642

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetEnchantmentsFunction>
a
CODEC
field_45843
private final Map<Holder<Enchantment>, NumberProvider>
b
enchantments
field_27907
private final boolean
c
add
field_27908

Constructor summary

ModifierConstructor
(List<LootItemCondition> arg0, Map<Holder<Enchantment>, NumberProvider> arg1, boolean arg2)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetEnchantmentsFunction>
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)