Interface ItemCache

    • Method Detail

      • getItem

        Item getItem​(ItemState state)
        Returns the cached Item that belongs to the given ItemState or null if the cache does not contain that Item.
        Parameters:
        state - State of the item that should be retrieved.
        Returns:
        The item reference stored in the corresponding cache entry or null if there's no corresponding cache entry.
      • clear

        void clear()
        Clear all entries in the ItemCache and free resources.