Package net.fabricmc.fabric.api.loot.v3
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
modifyLootTableDrops
(RegistryEntry<LootTable> entry, LootContext context, List<ItemStack> drops) Called after a loot table is finished generating drops to modify drops.
-
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 aRegistryEntry.Reference
if the lootTable is registered, or aRegistryEntry.Direct
if the table is inlinecontext
- the loot context for the current dropsdrops
- the list of drops from the loot table to modify
-