Class ItemCache
java.lang.Object
org.rspeer.game.service.inventory.ItemCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(Function<ItemQuery, ItemQueryResults> function) int
getCount
(Function<ItemQuery, ItemQueryResults> function) int
getCount
(Function<ItemQuery, ItemQueryResults> function, boolean includeStacks) int
int
int
boolean
isLoaded()
iterator()
query()
stream()
void
update
(int slot, int id, int amount) void
update
(RSInventory inventory) void
update
(InventoryEvent event) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ItemCache
public ItemCache(int capacity)
-
-
Method Details
-
update
-
update
-
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
-