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 Details

    • modifyLootTableDrops

      void modifyLootTableDrops(RegistryEntry<LootTable> entry, LootContext context, List<ItemStack> drops)
      Called after a loot table is finished generating drops to modify drops.
      Parameters:
      entry - the loot table's registry entry. This will be a RegistryEntry.Reference if the lootTable is registered, or a RegistryEntry.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