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

public class SetEnchantmentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

esl
net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction
net.minecraft.class_5642
net.minecraft.loot.function.SetEnchantmentsLootFunction
net.minecraft.src.C_141470_
net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction

Field summary

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

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, Map<Holder<Enchantment>, NumberProvider> enchantments, boolean add)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetEnchantmentsFunction>
b()
getType()
method_29321()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public ItemStack
a(cur arg0, eqk arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_165347_, C_2811_ arg1)