Package net.fabricmc.fabric.api.loot.v3
Interface LootTableEvents.Replace
- 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 TypeMethodDescription@Nullable net.minecraft.world.level.storage.loot.LootTablereplaceLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> key, net.minecraft.world.level.storage.loot.LootTable original, LootTableSource source, net.minecraft.core.HolderLookup.Provider registries) Replaces loot tables.
-
Method Details
-
replaceLootTable
@Nullable net.minecraft.world.level.storage.loot.LootTable replaceLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> key, net.minecraft.world.level.storage.loot.LootTable original, LootTableSource source, net.minecraft.core.HolderLookup.Provider registries) Replaces loot tables.- Parameters:
key- the loot table keyoriginal- the original loot tablesource- the source of the original loot tableregistries- the registry wrapper lookup- Returns:
- the new loot table, or null if it wasn't replaced
-