net.minecraft.loot.function

public class SetEnchantmentsLootFunction

extends ConditionalLootFunction

All mapped superinterfaces:

LootFunction, LootContextAware

ffk
net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction
net.minecraft.class_5642
net.minecraft.loot.function.SetEnchantmentsLootFunction
net.minecraft.unmapped.C_bpyfibfg
net.minecraft.loot.function.SetEnchantmentsLootFunction
net.minecraft.src.C_141470_

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetEnchantmentsLootFunction>
a
CODEC
field_45843
CODEC
f_rskwfqym
CODEC
f_290423_
private final Map<RegistryEntry<Enchantment>, LootNumberProvider>
b
enchantments
field_27907
enchantments
f_lrrfbeoq
enchantments
f_165334_
private final boolean
c
add
field_27908
add
f_unibonct
add
f_165335_

Constructor summary

ModifierConstructor
(List<LootCondition> conditions, Map<RegistryEntry<Enchantment>, LootNumberProvider> enchantments, boolean add)

Method summary

Modifier and TypeMethod
public LootFunctionType<SetEnchantmentsLootFunction>
b()
getType()
method_29321()
getType()
m_ngvoddkv()
getType()
m_7162_()
public Set<ContextParameter<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
m_oozesizv()
getRequiredParameters()
m_6231_()
public ItemStack
a(dcv o, fdj arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_axzztavb(C_sddaxwyk arg0, C_iakykpgh arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_165347_, C_2811_ arg1)