Package net.fabricmc.fabric.api.loot.v2
Interface LootTableEvents.Replace
- Enclosing class:
- LootTableEvents
public static interface LootTableEvents.Replace
-
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.loot.LootTable
replaceLootTable
(net.minecraft.resource.ResourceManager resourceManager, net.minecraft.loot.LootManager lootManager, net.minecraft.util.Identifier id, net.minecraft.loot.LootTable original, LootTableSource source) Replaces loot tables.
-
Method Details
-
replaceLootTable
@Nullable @Nullable net.minecraft.loot.LootTable replaceLootTable(net.minecraft.resource.ResourceManager resourceManager, net.minecraft.loot.LootManager lootManager, net.minecraft.util.Identifier id, net.minecraft.loot.LootTable original, LootTableSource source) Replaces loot tables.- Parameters:
resourceManager
- the server resource managerlootManager
- the loot managerid
- the loot table IDoriginal
- the original loot tablesource
- the source of the original loot table- Returns:
- the new loot table, or null if it wasn't replaced
-