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

public class SetEnchantmentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

ebh
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
final Map<Enchantment, NumberProvider>
a
enchantments
field_27907
enchantments
f_165334_
final boolean
b
add
field_27908
add
f_165335_

Constructor summary

ModifierConstructor
(LootItemCondition[] conditions, Map<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(cfz arg0, dzk 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<ckg, Integer> arg0, ckg 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_)