net.minecraft.loot.function

public class EnchantedCountIncreaseLootFunction

extends ConditionalLootFunction

All mapped superinterfaces:

LootFunction, LootContextAware, LootTableReportable

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

Field summary

Modifier and TypeField
public static final int
NO_LIMIT
NO_LIMIT
field_31854
DEFAULT_LIMIT
public static final com.mojang.serialization.MapCodec<EnchantedCountIncreaseLootFunction>
MAP_CODEC
MAP_CODEC
field_45833
CODEC
private final RegistryEntry<Enchantment>
enchantment
enchantment
field_51798
enchantment
private final LootNumberProvider
count
count
field_1082
count
private final int
limit
limit
field_1083
limit

Constructor summary

ModifierConstructor
private (List<LootCondition> conditions, RegistryEntry<Enchantment> enchantment, LootNumberProvider count, int limit)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<EnchantedCountIncreaseLootFunction>
codec()
codec()
method_1_738()
getCodec()
public Set<ContextParameter<?>>
getReferencedContextParams()
getReferencedContextParams()
method_293()
getAllowedParameters()
public void
validate(ValidationContext context)
validate(ValidationContext context)
method_292(class_58 arg0)
report(LootTableReporter arg0)
private boolean
hasLimit()
hasLimit()
method_549()
hasLimit()
public ItemStack
run(ItemStack itemStack, LootContext context)
run(ItemStack itemStack, LootContext context)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
public static EnchantedCountIncreaseLootFunction$Builder
lootingMultiplier(HolderLookup$Provider registries, NumberProvider count)
lootingMultiplier(HolderLookup$Provider registries, NumberProvider count)
method_547(class_7225$class_7874 arg0, class_5658 arg1)
builder(RegistryWrapper$WrapperLookup registries, LootNumberProvider count)