Class Bank
java.lang.Object
org.rspeer.game.adapter.Adapter<jag.oldscape.RSInventory>
org.rspeer.game.adapter.component.inventory.Inventory
org.rspeer.game.adapter.component.inventory.Bank
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Inventory
Inventory.Format -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleandeposit(int id, int amount) booleanbooleanbooleandepositAll(Function<ItemQuery, ItemQueryResults> function) booleandepositAllExcept(Function<ItemQuery, ItemQueryResults> function) booleanbooleanvoidstatic booleanstatic booleanbooleanisFull()static booleanisOpen()static booleanstatic booleanstatic booleanopen()Walks to the nearest bank determined via webstatic booleanopen(Bank.Location loc) Walks to the bank using the web and opens it.static booleanopen(Bank.Location loc, boolean strict) Walks to the bank using the web and opens it.booleanbooleanwithdraw(int id, int amount) booleanbooleanbooleanwithdrawAll(Function<ItemQuery, Item> function) Methods inherited from class Inventory
backpack, bank, contains, containsAll, equipment, forceDefaultProvider, get, get, get, getCapacity, getCount, getCount, getEmptySlots, getItems, getItems, getItems, getItems, getKey, getSelectedItem, interact, isEmpty, isItemSelected, isLoaded, isUnbound, query, queryOf, queryOf, setExtractFromProvider, setQueries, toStringMethods inherited from class Adapter
getProvider, validate
-
Constructor Details
-
Bank
public Bank(jag.oldscape.RSInventory provider)
-
-
Method Details
-
defaultProvider
- Overrides:
defaultProviderin classInventory
-
isOpen
public static boolean isOpen() -
open
Walks to the bank using the web and opens it.- Parameters:
loc- the bank you want to open- Returns:
- returns true when we are in any bank or successfully clicked the bank
-
open
Walks to the bank using the web and opens it.- Parameters:
loc- the bank you want to openstrict- if true it will guarantee you are at the correct bank before opening- Returns:
- returns true when we are in the bank or successfully clicked the bank
-
open
public static boolean open()Walks to the nearest bank determined via web- Returns:
- returns true if we are in the bank or successfully clicked the bank
-
isViewingMainTab
public static boolean isViewingMainTab() -
isDepositInventoryEnabled
public static boolean isDepositInventoryEnabled() -
isDepositEquipmentEnabled
public static boolean isDepositEquipmentEnabled() -
isSettingsOpen
public static boolean isSettingsOpen() -
isFull
-
dismissLootingBag
public void dismissLootingBag() -
depositInventory
public boolean depositInventory() -
depositEquipment
public boolean depositEquipment() -
configureDefaultOptions
public boolean configureDefaultOptions() -
deposit
-
withdraw
-
withdrawAll
-
depositAll
-
depositAllExcept
-
withdraw
-
withdraw
public boolean withdraw(int id, int amount) -
deposit
-
deposit
public boolean deposit(int id, int amount) -
getWithdrawMode
-
setWithdrawMode
-