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.

@FunctionalInterface public static interface LootTableEvents.Replace
  • Method Details

    • replaceLootTable

      @Nullable @Nullable LootTable replaceLootTable(RegistryKey<LootTable> key, LootTable original, LootTableSource source, RegistryWrapper.WrapperLookup registries)
      Replaces loot tables.
      Parameters:
      key - the loot table key
      original - the original loot table
      source - the source of the original loot table
      registries - the registry wrapper lookup
      Returns:
      the new loot table, or null if it wasn't replaced