Class LootTableManager
java.lang.Object
com.blamejared.crafttweaker.api.loot.table.LootTableManager
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 Summary
Fields -
Method Summary
-
Field Details
-
INSTANCE
-
-
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
Gets the ids of all registered loot tables.- Returns:
- The ids of all registered loot tables.
-