Class LootTableManager

java.lang.Object
com.blamejared.crafttweaker.api.loot.table.LootTableManager

@ZenRegister public class LootTableManager extends Object
Manager for loot tables.

An instance of this manager can be obtained via the LootManager.

These methods can only be called from the server side, so ensure that all calls are inside a level.isClientSide check or a #onlyIf side server preprocessor!

DocParam:
this loot.tables
  • Field Details

  • Method Details

    • getTable

      public net.minecraft.world.level.storage.loot.LootTable getTable(net.minecraft.resources.ResourceLocation name)
      Gets a table with the given name.

      If no table is registered with the name, an empty table will be returned.

      Parameters:
      name - The name of the table to get.
      Returns:
      The found table or an empty table if not found.
      DocParam:
      name invalid input: '<'resource:minecraft:gameplay/cat_morning_gift>
    • getIds

      public Set<net.minecraft.resources.ResourceLocation> getIds()
      Gets the ids of all registered loot tables.
      Returns:
      The ids of all registered loot tables.