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

public class EnchantWithLevelsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

esv
net.minecraft.world.level.storage.loot.functions.EnchantWithLevelsFunction
net.minecraft.class_106
net.minecraft.unmapped.C_hujvlqyo
net.minecraft.loot.function.EnchantWithLevelsLootFunction
net.minecraft.loot.function.EnchantWithLevelsLootFunction
net.minecraft.src.C_2910_
net.minecraft.world.level.storage.loot.functions.LootEnchantLevel

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<EnchantWithLevelsFunction>
a
CODEC
field_45825
f_ybeuskpt
CODEC
CODEC
f_291036_
private final NumberProvider
b
levels
field_1026
f_uznihzkv
levels
range
f_80471_
private final Optional<HolderSet<Enchantment>>
c
options
field_51796
f_dhstuucg
options
options
f_337585_

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, NumberProvider levels, Optional<HolderSet<Enchantment>> options)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<EnchantWithLevelsFunction>
b()
getType()
method_29321()
m_ngvoddkv()
getType()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
m_oozesizv()
getRequiredParameters()
getRequiredParameters()
m_6231_()
public ItemStack
a(cuq arg0, err 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_80484_, C_2811_ arg1)
public static EnchantWithLevelsFunction$Builder
a(jo$a arg0, evy arg1)
enchantWithLevels(HolderLookup$Provider arg0, NumberProvider arg1)
method_481(class_7225$class_7874 arg0, class_5658 arg1)
m_baumhjth(C_vtbxyypo$C_etmlgbig arg0, C_iajmfyig arg1)
builder(RegistryWrapper$WrapperLookup registryLookup, LootNumberProvider levels)
m_baumhjth(HolderLookup$Provider arg0, LootNumberProvider range)
m_165196_(C_213466_$C_254607_ p_342807_, C_141501_ p_165197_)