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

public class LootingEnchantFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eeg
net.minecraft.world.level.storage.loot.functions.LootingEnchantFunction
net.minecraft.class_125
net.minecraft.loot.function.LootingEnchantLootFunction
net.minecraft.src.C_2932_
net.minecraft.world.level.storage.loot.functions.LootEnchantFunction

Field summary

Modifier and TypeField
public static final int
a
NO_LIMIT
field_31854
field_31854
f_165224_
public static final com.mojang.serialization.Codec<LootingEnchantFunction>
b
CODEC
field_45833
CODEC
f_290533_
private final NumberProvider
c
value
field_1082
countRange
f_80776_
private final int
d
limit
field_1083
limit
f_80777_

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, NumberProvider countRange, int limit)

Method summary

Modifier and TypeMethod
public LootItemFunctionType
b()
getType()
method_29321()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
private boolean
c()
hasLimit()
method_549()
hasLimit()
m_80798_()
public ItemStack
a(cjf arg0, ecq arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_80790_, C_2811_ arg1)
public static LootingEnchantFunction$Builder
a(egk arg0)
lootingMultiplier(NumberProvider arg0)
method_547(class_5658 arg0)
builder(LootNumberProvider countRange)
m_165229_(C_141501_ p_165230_)