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 TypeMethodDescriptionvoidmodifyLootTableDrops(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 aHolder.Referenceif the lootTable is registered, or aHolder.Directif the table is inlinecontext- the loot context for the current dropsdrops- the list of drops from the loot table to modify
-