Initial commit

This commit is contained in:
Scifi9902
2026-10-12 13:57:05 -03:00
commit 4bde3b176a
2576 changed files with 212659 additions and 0 deletions
@@ -0,0 +1,21 @@
package net.crankedpvp.loottable.data;
import net.crankedpvp.loottable.LootTablePlugin;
import net.crankedpvp.loottable.struct.LootTableType;
import net.crankedpvp.storageutils.StorageUtils;
import net.crankedpvp.storageutils.utils.SaveLoadManager;
public class LootTableManager extends SaveLoadManager<LootTable> {
public LootTableManager(LootTablePlugin plugin) {
super(plugin, LootTablePlugin.getInstance().getGson(), "/data", LootTable.class);
}
public LootTable getLootTable(LootTableType lootTableType) {
if (!containsKey(lootTableType.name())) {
LootTable lootTable = new LootTable(lootTableType);
addToCache(lootTable);
}
return getFromCache(lootTableType.name());
}
}