BankCache

public class BankCache

Provides a cache that keeps track of all the items in the bank. This updates when opening and closing the bank using the standard Bank API. Can also be updated manually. Only stores item IDs and Stacks to minimize memory.

Functions

entries
Link copied to clipboard
static Set<Map.Entry<Integer, Integer>> entries()
Gets all the cache entries
getStack
Link copied to clipboard
static int getStack(int itemId)
Gets the amount of the given itemID is contained in the bank cache.
isInitialized
Link copied to clipboard
static boolean isInitialized()
Determines if the cache has had its first successful update yet.
update
Link copied to clipboard
static void update()
Updates the cache with all the bank items.