net.minecraft.loot.function

public interface LootFunction

extends LootContextAware, BiFunction<ItemStack, LootContext, ItemStack>

net.minecraft.world.level.storage.loot.functions.LootItemFunction
net.minecraft.world.level.storage.loot.functions.LootItemFunction
net.minecraft.class_117
net.minecraft.loot.function.LootFunction

Method summary

Modifier and TypeMethod
com.mojang.serialization.MapCodec<? extends LootFunction>
codec()
codec()
method_1_738()
getCodec()
static Consumer<ItemStack>
decorate(Optional<Holder<LootItemFunction>> maybeFunction, Consumer<ItemStack> output, LootContext context)
decorate(Optional<Holder<LootItemFunction>> maybeFunction, Consumer<ItemStack> output, LootContext context)
method_513(Optional<class_6880<class_117>> arg0, Consumer<class_1799> arg1, class_47 arg2)
apply(Optional<RegistryEntry<LootFunction>> modifier, Consumer<ItemStack> lootConsumer, LootContext context)