Class LootLoader
java.lang.Object
com.github.darksoulq.abyssallib.world.data.loot.LootLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidload()Orchestrates the discovery and loading of loot tables from the local file system.static LootTableDecodes aLootTablefrom a file on the disk.static LootTableloadResource(org.bukkit.plugin.Plugin plugin, String resourcePath) Decodes aLootTablefrom a plugin's embedded resource.
-
Constructor Details
-
LootLoader
public LootLoader()
-
-
Method Details
-
load
public static void load()Orchestrates the discovery and loading of loot tables from the local file system.If the
loot_tables/directory does not exist, it will be created. Otherwise, it performs a recursive walk through the folder to find and process all valid.jsonfiles. -
load
-
loadResource
-