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

public class SetEnchantmentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eem
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.Codec<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
b()
getType()
method_29321()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public ItemStack
a(cjf arg0, ecq 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)
private static void
a(Map<cno, Integer> arg0, cno arg1, int arg2)
updateEnchantment(Map<Enchantment, Integer> arg0, Enchantment arg1, int arg2)
method_32411(Map<class_1887, Integer> arg0, class_1887 arg1, int arg2)
addEnchantmentToMap(Map<Enchantment, Integer> map, Enchantment enchantment, int level)
m_165355_(Map<C_1505_, Integer> p_165356_, C_1505_ p_165357_, int p_165358_)