Commit Graph
12 Commits
Author SHA1 Message Date
Luis C.M 2c905d29b5 Fixed custom items rendering differently in item frames from vanilla items. 2023-08-01 17:34:39 -05:00
Luis C.M 9de16f1eef Fixed custom items jittering in item frames and not being scaled correctly. 2023-06-30 19:30:24 -05:00
Luis C.M 6ea19ed752 Fixed custom item bobbing when multiple items are dropped. Custom items now ignore frustum checks, so larger custom items can be rendered properly. 2023-06-29 14:06:57 -05:00
Luis C.M f5ac14b93e Merge branch 'patch' into dev
# Conflicts:
#	src/main/java/noppes/npcs/client/gui/custom/components/CustomGuiButton.java
#	src/main/java/noppes/npcs/client/gui/custom/components/CustomGuiTexturedRect.java
#	src/main/java/noppes/npcs/client/renderer/customitem/CustomItemRenderer.java
2023-06-01 16:35:04 -05:00
Luis C.M 7000b525f3 Fixed entity custom item rendering, and rendering of textures for custom GUI buttons and rectangles. 2023-05-31 18:55:06 -05:00
Luis C.M f5e4d702b1 ClientCache renamed to ClientCacheHandler, moved ImageData into the client package. 2023-05-31 00:56:15 -05:00
Luis C.M 46febe5c0a CacheHashMap:
-New class extending from the HashMap class, only takes CacheHashMap.CachedObject as values, which itself is a template class.
-On every call to get(), it goes through its values and removes any that are past a set age in millis.

ClientCache:
-New class with static CacheHashMap and function to get image data, will do more caching later on.
2023-05-30 23:41:37 -05:00
Luis C.M b49402f8bd Implemented ImageData object caching for custom GUI button & rect elements 2023-05-20 19:23:54 -05:00
Luis C.M 8b0431340c Crash fixes for custom items 2023-04-12 00:18:43 -05:00
Luis C.M 116dc23f2b Added functions for safeguarding scripted item textures erroring. 2023-04-11 23:25:29 -05:00
Luis C.M 84286794aa Fixes to recent custom item changes, width wasn't rendering properly 2023-03-19 02:32:09 -05:00
Luis C.M 39a40c9603 Fixed URL support for scripted items, weird 3d visibility bug still present that needs to be fixed. 2023-03-19 02:04:47 -05:00