Package net.fabricmc.fabric.api.loot.v3
Interface LootTableEvents.Modify
- 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 TypeMethodDescriptionvoidmodifyLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> key, net.minecraft.world.level.storage.loot.LootTable.Builder tableBuilder, LootTableSource source, net.minecraft.core.HolderLookup.Provider registries) Called when a loot table is loading to modify loot tables.
-
Method Details
-
modifyLootTable
void modifyLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> key, net.minecraft.world.level.storage.loot.LootTable.Builder tableBuilder, LootTableSource source, net.minecraft.core.HolderLookup.Provider registries) Called when a loot table is loading to modify loot tables.- Parameters:
key- the loot table keytableBuilder- a builder of the loot table being loadedsource- the source of the loot tableregistries- the registry wrapper lookup
-