Package dev.aurelium.auraskills.api.loot
Interface LootManager
public interface LootManager
-
Method Summary
Modifier and TypeMethodDescription@Nullable LootTable
Gets a loot table from a given name.void
registerLootType
(String name, LootParser parser) Registers a new loot type with a given name and parser.
-
Method Details
-
getLootTable
Gets a loot table from a given name.- Parameters:
id
- theNamespacedId
of the loot table- Returns:
- the loot table
-
registerLootType
Registers a new loot type with a given name and parser.- Parameters:
name
- the name used in the loot file as the value of the type fieldparser
- the parser
-