Class ItemCache
java.lang.Object
org.rspeer.game.service.inventory.ItemCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(Function<ItemQuery, ItemQueryResults> function) intgetCount(Function<ItemQuery, ItemQueryResults> function) intgetCount(Function<ItemQuery, ItemQueryResults> function, boolean includeStacks) intintintbooleanisLoaded()iterator()query()stream()voidupdate(int slot, int id, int amount) voidupdate(jag.oldscape.RSInventory inventory) voidupdate(InventoryEvent event) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
ItemCache
public ItemCache(int capacity)
-
-
Method Details
-
update
-
update
public void update(jag.oldscape.RSInventory inventory) -
update
public void update(int slot, int id, int amount) -
getValidSlots
-
getValidSlotCount
public int getValidSlotCount() -
getRemainingSlots
public int getRemainingSlots() -
getSlotCount
public int getSlotCount() -
contains
-
getCount
-
getCount
-
isLoaded
public boolean isLoaded() -
query
-
stream
-
iterator
-