net.minecraft.loot.function

public interface LootFunction

extends LootContextAware, BiFunction<ItemStack, LootContext, ItemStack>

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()
method_1_738()
getCodec()
static Consumer<ItemStack>
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)
private static void
lambda$decorate$0(Consumer arg0, Holder arg1, LootContext arg2, ItemStack arg3)
method_514(Consumer arg0, class_6880 arg1, class_47 arg2, class_1799 arg3)
method_514(Consumer arg0, RegistryEntry arg1, LootContext arg2, ItemStack stack)