Interface LootTableEvents.ModifyDrops

Enclosing class:
LootTableEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface LootTableEvents.ModifyDrops
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    modifyLootTableDrops(net.minecraft.core.Holder<net.minecraft.world.level.storage.loot.LootTable> holder, net.minecraft.world.level.storage.loot.LootContext context, List<net.minecraft.world.item.ItemStack> drops)
    Called after a loot table is finished generating drops to modify drops.
  • Method Details

    • modifyLootTableDrops

      void modifyLootTableDrops(net.minecraft.core.Holder<net.minecraft.world.level.storage.loot.LootTable> holder, net.minecraft.world.level.storage.loot.LootContext context, List<net.minecraft.world.item.ItemStack> drops)
      Called after a loot table is finished generating drops to modify drops.
      Parameters:
      holder - the loot table's registry holder. This will be a Holder.Reference if the lootTable is registered, or a Holder.Direct if the table is inline
      context - the loot context for the current drops
      drops - the list of drops from the loot table to modify