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

public class EnchantRandomlyFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

fak
net.minecraft.world.level.storage.loot.functions.EnchantRandomlyFunction
net.minecraft.class_109
net.minecraft.unmapped.C_mcyropux
net.minecraft.loot.function.EnchantRandomlyLootFunction
net.minecraft.loot.function.EnchantRandomlyLootFunction

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemFunctionType<EnchantRandomlyFunction>
b()
getType()
method_29321()
m_ngvoddkv()
getType()
getType()
public ItemStack
a(czd arg0, ezh 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)
private static ItemStack
a(czd arg0, je<dfq> arg1, azv arg2)
enchantItem(ItemStack arg0, Holder<Enchantment> arg1, RandomSource arg2)
method_26266(class_1799 arg0, class_6880<class_1887> arg1, class_5819 arg2)
m_susyvyur(C_sddaxwyk arg0, C_cjzoxshv<C_jxtrubuh> arg1, C_rlomrsco arg2)
addEnchantmentToStack(ItemStack stack, RegistryEntry<Enchantment> enchantment, Random random)
process(ItemStack stack, Holder<Enchantment> acceptableOptions, RandomGenerator random)
public static EnchantRandomlyFunction$Builder
c()
randomEnchantment()
method_35520()
m_oylffrhc()
create()
builder()
public static EnchantRandomlyFunction$Builder
a(jg$a arg0)
randomApplicableEnchantment(HolderLookup$Provider arg0)
method_489(class_7225$class_7874 arg0)
m_hgxjeanh(C_vtbxyypo$C_etmlgbig arg0)
builder(RegistryWrapper$WrapperLookup registries)
randomLootBuilder(HolderLookup$Provider registries)