From 68b9651f94fa0dbf0a1244d0b0da74e5ce3d7b21 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 18 Mar 2024 06:56:00 -0400 Subject: [PATCH] Unused junk removed --- src/engine/objects/ItemBase.java | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/engine/objects/ItemBase.java b/src/engine/objects/ItemBase.java index c39ba1bc..c2833448 100644 --- a/src/engine/objects/ItemBase.java +++ b/src/engine/objects/ItemBase.java @@ -22,7 +22,6 @@ import java.util.HashMap; public class ItemBase { public static ItemBase GOLD_ITEM_BASE = null; - public static int GOLD_BASE_ID = 7; public static HashMap _itemBaseByUUID = new HashMap<>(); private static final HashMap itemHashIDMap = new HashMap<>(); private static final HashMap _IDsByNames = new HashMap<>(); @@ -79,35 +78,15 @@ public class ItemBase { _IDsByNames.put(template.item_base_name.toLowerCase().replace(" ", "_"), itemBase.uuid); } - public static HashMap getItemHashIDMap() { - return itemHashIDMap; - } - public static ItemBase getItemBase(int uuid) { return _itemBaseByUUID.get(uuid); } - public static ItemBase getGoldItemBase() { - if (ItemBase.GOLD_ITEM_BASE == null) - ItemBase.GOLD_ITEM_BASE = getItemBase(7); - return ItemBase.GOLD_ITEM_BASE; - } - - public static int getIDByName(String name) { - if (ItemBase._IDsByNames.containsKey(name)) - return ItemBase._IDsByNames.get(name); - return 0; - } - public static HashMap getUUIDCache() { return _itemBaseByUUID; } - public static ArrayList getResourceList() { - return _resourceList; - } - public static void loadAllItemBases() { DbManager.ItemBaseQueries.LOAD_ALL_ITEMBASES(); } @@ -118,11 +97,6 @@ public class ItemBase { return ID > 2499 && ID < 3050; } - public boolean isGlass() { - int ID = uuid; - return ID > 7000099 && ID < 7000281; - } - public int getModTable() { return modTable; }