Interface LootTableEvents.Modify

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.Modify
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    modifyLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> key, net.minecraft.world.level.storage.loot.LootTable.Builder tableBuilder, LootTableSource source, net.minecraft.core.HolderLookup.Provider holder)
    Called when a loot table is loading to modify loot tables.
  • Method Details

    • modifyLootTable

      void modifyLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> key, net.minecraft.world.level.storage.loot.LootTable.Builder tableBuilder, LootTableSource source, net.minecraft.core.HolderLookup.Provider holder)
      Called when a loot table is loading to modify loot tables.
      Parameters:
      key - the loot table key
      tableBuilder - a builder of the loot table being loaded
      source - the source of the loot table
      holder - the holder lookup