net.minecraft.loot.function

public class EnchantRandomlyLootFunction

extends ConditionalLootFunction

All mapped superinterfaces:

LootFunction, LootContextAware

ern
net.minecraft.world.level.storage.loot.functions.EnchantRandomlyFunction
net.minecraft.class_109
net.minecraft.loot.function.EnchantRandomlyLootFunction
net.minecraft.unmapped.C_mcyropux
net.minecraft.loot.function.EnchantRandomlyLootFunction
net.minecraft.src.C_2906_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_1031
LOGGER
f_hmtatkky
LOGGER
f_80414_
private static final com.mojang.serialization.Codec<RegistryEntryList<Enchantment>>
c
ENCHANTMENT_SET_CODEC
field_45824
ENCHANTMENT_LIST_CODEC
f_qkktzcyr
ENCHANTMENT_HOLDER_CODEC
f_291886_
public static final com.mojang.serialization.MapCodec<EnchantRandomlyLootFunction>
a
CODEC
field_45823
CODEC
f_bwriysqi
CODEC
f_291046_
private final Optional<RegistryEntryList<Enchantment>>
d
enchantments
field_1030
enchantments
f_dtvmmsyz
enchantments
f_80415_

Constructor summary

ModifierConstructor
(List<LootCondition> conditions, Optional<RegistryEntryList<Enchantment>> enchantments)

Method summary

Modifier and TypeMethod
public LootFunctionType<EnchantRandomlyLootFunction>
b()
getType()
method_29321()
getType()
m_ngvoddkv()
getType()
m_7162_()
public ItemStack
a(cur o, eqk 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_80430_, C_2811_ arg1)
private static ItemStack
a(cur o, dac o, azh o)
enchantItem(ItemStack arg0, Enchantment arg1, RandomSource arg2)
method_26266(class_1799 arg0, class_1887 arg1, class_5819 arg2)
addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)
m_susyvyur(C_sddaxwyk arg0, C_jxtrubuh arg1, C_rlomrsco arg2)
addEnchantmentToStack(ItemStack stack, Enchantment enchantment, RandomGenerator random)
m_230979_(C_1391_ p_230980_, C_1505_ p_230981_, C_212974_ p_230982_)
public static EnchantRandomlyLootFunction$Builder
c()
randomEnchantment()
method_35520()
create()
m_oylffrhc()
create()
m_165191_()
public static ConditionalLootFunction$Builder<?>
d()
randomApplicableEnchantment()
method_489()
builder()
m_hgxjeanh()
builder()
m_80440_()