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

public class EnchantRandomlyFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

esu
net.minecraft.world.level.storage.loot.functions.EnchantRandomlyFunction
net.minecraft.class_109
net.minecraft.loot.function.EnchantRandomlyLootFunction
net.minecraft.src.C_2906_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionEnchant

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_1031
LOGGER
f_80414_
public static final com.mojang.serialization.MapCodec<EnchantRandomlyFunction>
a
CODEC
field_45823
CODEC
f_291046_
private final Optional<HolderSet<Enchantment>>
c
options
field_51792
options
f_336941_
private final boolean
d
onlyCompatible
field_51793
onlyCompatible
f_336641_

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, Optional<HolderSet<Enchantment>> options, boolean onlyCompatible)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<EnchantRandomlyFunction>
b()
getType()
method_29321()
getType()
m_7162_()
public ItemStack
a(cuq arg0, err arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_80430_, C_2811_ arg1)
private static ItemStack
a(cuq arg0, jm<dac> arg1, ayw arg2)
enchantItem(ItemStack arg0, Holder<Enchantment> arg1, RandomSource arg2)
method_26266(class_1799 arg0, class_6880<class_1887> arg1, class_5819 arg2)
addEnchantmentToStack(ItemStack stack, RegistryEntry<Enchantment> enchantment, Random random)
m_230979_(C_1391_ p_230980_, C_203228_<C_1505_> p_343939_, C_212974_ p_230982_)
public static EnchantRandomlyFunction$Builder
c()
randomEnchantment()
method_35520()
create()
m_165191_()
public static EnchantRandomlyFunction$Builder
a(jo$a arg0)
randomApplicableEnchantment(HolderLookup$Provider arg0)
method_489(class_7225$class_7874 arg0)
builder(RegistryWrapper$WrapperLookup registryLookup)
m_80440_(C_213466_$C_254607_ p_343847_)