Interface LootTableEvents.Replace

Enclosing class:
LootTableEvents

@Deprecated public static interface LootTableEvents.Replace
Deprecated.
  • Method Summary

    Modifier and Type
    Method
    Description
    @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)
    Deprecated.
    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)
      Deprecated.
      Replaces loot tables.
      Parameters:
      key - the loot table key
      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