Class Backpack
- java.lang.Object
-
- org.rspeer.game.adapter.Adapter<RSInventory>
-
- org.rspeer.game.adapter.component.inventory.Inventory
-
- org.rspeer.game.adapter.component.inventory.Backpack
-
public class Backpack extends Inventory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.rspeer.game.adapter.component.inventory.Inventory
Inventory.Format
-
-
Constructor Summary
Constructors Constructor Description Backpack(RSInventory provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCapacity()
boolean
use(Function<ItemQuery,Item> functionA, Function<ItemQuery,Item> functionB)
boolean
use(Function<ItemQuery,Item> function, Interactable target)
boolean
use(Item item, Interactable target)
-
Methods inherited from class org.rspeer.game.adapter.component.inventory.Inventory
backpack, bank, contains, containsAll, equipment, forceDefaultProvider, get, get, get, getCount, getCount, getEmptySlots, getItems, getItems, getItems, getItems, getKey, getSelectedItem, interact, isEmpty, isFull, isItemSelected, isLoaded, isUnbound, query, queryOf, queryOf, setExtractFromProvider, setQueries, toString
-
Methods inherited from class org.rspeer.game.adapter.Adapter
getProvider, validate
-
-
-
-
Constructor Detail
-
Backpack
public Backpack(RSInventory provider)
-
-
Method Detail
-
use
public boolean use(Function<ItemQuery,Item> function, Interactable target)
-
use
public boolean use(Item item, Interactable target)
-
getCapacity
public int getCapacity()
- Overrides:
getCapacity
in classInventory
-
-