|
|
|
@ -22,17 +22,10 @@ public class ItemBase {
@@ -22,17 +22,10 @@ public class ItemBase {
|
|
|
|
|
public static HashMap<Integer, ItemBase> _itemBaseByUUID = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
public final int uuid; |
|
|
|
|
private final int modTable; |
|
|
|
|
|
|
|
|
|
public ItemBase(ResultSet rs) throws SQLException { |
|
|
|
|
|
|
|
|
|
this.uuid = rs.getInt("ID"); |
|
|
|
|
this.modTable = rs.getInt("modTable"); |
|
|
|
|
|
|
|
|
|
ItemTemplate template = ItemTemplate.templates.get(this.getUUID()); |
|
|
|
|
|
|
|
|
|
if (template == null) |
|
|
|
|
Logger.error(this.getUUID() + " null template"); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -46,11 +39,6 @@ public class ItemBase {
@@ -46,11 +39,6 @@ public class ItemBase {
|
|
|
|
|
Logger.error("Null template for: " + itemBase.uuid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static ItemBase getItemBase(int uuid) { |
|
|
|
|
|
|
|
|
|
return _itemBaseByUUID.get(uuid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static HashMap<Integer, ItemBase> getUUIDCache() { |
|
|
|
|
return _itemBaseByUUID; |
|
|
|
|
} |
|
|
|
@ -60,10 +48,6 @@ public class ItemBase {
@@ -60,10 +48,6 @@ public class ItemBase {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getModTable() { |
|
|
|
|
return modTable; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public final int getUUID() { |
|
|
|
|
return uuid; |
|
|
|
|
} |
|
|
|
|