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

public class SetEnchantmentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

ext
net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction
net.minecraft.class_5642
net.minecraft.unmapped.C_bpyfibfg
net.minecraft.loot.function.SetEnchantmentsLootFunction
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
f_rskwfqym
CODEC
CODEC
f_290423_
private final Map<Holder<Enchantment>, NumberProvider>
b
enchantments
field_27907
f_lrrfbeoq
enchantments
enchantments
f_165334_
private final boolean
c
add
field_27908
f_unibonct
add
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()
m_ngvoddkv()
getType()
getType()
m_7162_()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
m_oozesizv()
getAllowedParameters()
getRequiredParameters()
m_6231_()
public ItemStack
a(cwq arg0, evs arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
m_axzztavb(C_sddaxwyk arg0, C_iakykpgh arg1)
process(ItemStack arg0, LootContext arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_165347_, C_2811_ arg1)