Fixed URL support for scripted items, weird 3d visibility bug still present that needs to be fixed.

This commit is contained in:
Luis C.M committed 2023-03-19 02:04:47 -05:00
1 parent 7fdfd14174
commit 39a40c9603
6 files changed
+73 -50

No files matched your search

@@ -8,6 +8,7 @@ import noppes.npcs.CustomNpcs;
import noppes.npcs.Server;
import noppes.npcs.client.gui.OverlayQuestTracking;
import noppes.npcs.client.gui.customoverlay.OverlayCustom;
import noppes.npcs.client.renderer.customitem.ItemImageData;
import noppes.npcs.constants.EnumPacketServer;
import noppes.npcs.controllers.data.SkinOverlay;
@@ -20,6 +21,7 @@ public class Client {
public static HashMap<Integer, OverlayCustom> customOverlays = new HashMap<>();
public static HashMap<UUID, HashMap<Integer, SkinOverlay>> skinOverlays = new HashMap<>();
public static HashMap<UUID, AnimationData> playerAnimations = new HashMap<>();
private static HashMap<String, ItemImageData> imageDataCache = new HashMap<>();
public static void sendData(EnumPacketServer enu, Object... obs) {
ByteBuf buffer = Unpooled.buffer();
@@ -31,4 +33,12 @@ public class Client {
e.printStackTrace();
}
}
public static ItemImageData getImageData(String directory) {
if (!imageDataCache.containsKey(directory)) {
ItemImageData downloadData = new ItemImageData(directory);
imageDataCache.put(directory, downloadData);
}
return imageDataCache.get(directory);
}
}