Package dev.aurelium.auraskills.api.loot
Interface LootManager
public interface LootManager
-
Method Summary
Modifier and TypeMethodDescription@Nullable LootTableGets a loot table from a given name.voidregisterLootType(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- theNamespacedIdof 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
-