Interface LootTableEvents.Replace

Enclosing class:
LootTableEvents

public static interface LootTableEvents.Replace
  • Method Details

    • replaceLootTable

      @Nullable @Nullable LootTable replaceLootTable(ResourceManager resourceManager, LootManager lootManager, Identifier id, LootTable original, LootTableSource source)
      Replaces loot tables.
      Parameters:
      resourceManager - the server resource manager
      lootManager - the loot manager
      id - the loot table ID
      original - the original loot table
      source - the source of the original loot table
      Returns:
      the new loot table, or null if it wasn't replaced