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

public class EnchantWithLevelsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

ero
net.minecraft.world.level.storage.loot.functions.EnchantWithLevelsFunction
net.minecraft.class_106
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
CODEC
f_291036_
private final NumberProvider
b
levels
field_1026
range
f_80471_
private final boolean
c
treasure
field_1027
treasureEnchantmentsAllowed
f_80472_

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, NumberProvider range, boolean treasureEnchantmentsAllowed)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<EnchantWithLevelsFunction>
b()
getType()
method_29321()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public ItemStack
a(cur arg0, eqk arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_80484_, C_2811_ arg1)
public static EnchantWithLevelsFunction$Builder
a(eup arg0)
enchantWithLevels(NumberProvider arg0)
method_481(class_5658 arg0)
builder(LootNumberProvider range)
m_165196_(C_141501_ p_165197_)