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

public class EnchantedCountIncreaseFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

exu
net.minecraft.world.level.storage.loot.functions.EnchantedCountIncreaseFunction
net.minecraft.class_125
net.minecraft.loot.function.EnchantedCountIncreaseLootFunction
net.minecraft.world.level.storage.loot.functions.EnchantedCountIncreaseFunction

Field summary

Modifier and TypeField
public static final int
a
NO_LIMIT
field_31854
DEFAULT_LIMIT
public static final com.mojang.serialization.MapCodec<EnchantedCountIncreaseFunction>
b
CODEC
field_45833
CODEC
private final Holder<Enchantment>
c
enchantment
field_51798
enchantment
private final NumberProvider
d
value
field_1082
count
private final int
e
limit
field_1083
limit

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, Holder<Enchantment> enchantment, NumberProvider count, int limit)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<EnchantedCountIncreaseFunction>
b()
getType()
method_29321()
getType()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
private boolean
c()
hasLimit()
method_549()
hasLimit()
public ItemStack
a(cxp arg0, ewp arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
public static EnchantedCountIncreaseFunction$Builder
a(js$a arg0, fau arg1)
lootingMultiplier(HolderLookup$Provider arg0, NumberProvider arg1)
method_547(class_7225$class_7874 arg0, class_5658 arg1)
builder(RegistryWrapper$WrapperLookup registries, LootNumberProvider count)