Commit Graph
2 Commits
Author SHA1 Message Date
Luis C.M 118d79f3ad Added synchronization blocks to functions retrieving objects from CacheHashMaps and made the API use one for caching item stacks as well. 2023-05-31 00:35:57 -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