BankCache

open 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.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Gets all the cache entries
Link copied to clipboard
open fun getStack(itemId: Int): Int
Gets the amount of the given itemID is contained in the bank cache.
Link copied to clipboard
Determines if the cache has had its first successful update yet.
Link copied to clipboard
open fun update()
Updates the cache with all the bank items.