Class Bank
- java.lang.Object
-
- org.rspeer.game.adapter.Adapter<RSInventory>
-
- org.rspeer.game.adapter.component.inventory.Inventory
-
- org.rspeer.game.adapter.component.inventory.Bank
-
public class Bank extends Inventory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBank.Locationstatic classBank.WithdrawMode-
Nested classes/interfaces inherited from class org.rspeer.game.adapter.component.inventory.Inventory
Inventory.Format
-
-
Constructor Summary
Constructors Constructor Description Bank(RSInventory provider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfigureDefaultOptions()booleandeposit(int id, int amount)booleandeposit(String name, int amount)booleandeposit(Function<ItemQuery,Item> function, int amount)booleandepositAll(Function<ItemQuery,ItemQueryResults> function)booleandepositAllExcept(Function<ItemQuery,ItemQueryResults> function)booleandepositEquipment()booleandepositInventory()voiddismissLootingBag()Bank.WithdrawModegetWithdrawMode()static booleanisDepositEquipmentEnabled()static booleanisDepositInventoryEnabled()booleanisFull()static booleanisOpen()static booleanisSettingsOpen()static booleanisViewingMainTab()static 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.booleansetWithdrawMode(Bank.WithdrawMode mode)booleanwithdraw(int id, int amount)booleanwithdraw(String name, int amount)booleanwithdraw(Function<ItemQuery,Item> function, int amount)booleanwithdrawAll(Function<ItemQuery,Item> function)-
Methods inherited from class org.rspeer.game.adapter.component.inventory.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, toString
-
Methods inherited from class org.rspeer.game.adapter.Adapter
getProvider, validate
-
-
-
-
Constructor Detail
-
Bank
public Bank(RSInventory provider)
-
-
Method Detail
-
isOpen
public static boolean isOpen()
-
open
public static boolean open(Bank.Location loc)
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
public static boolean open(Bank.Location loc, boolean strict)
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()
-
dismissLootingBag
public void dismissLootingBag()
-
depositInventory
public boolean depositInventory()
-
depositEquipment
public boolean depositEquipment()
-
configureDefaultOptions
public boolean configureDefaultOptions()
-
depositAll
public boolean depositAll(Function<ItemQuery,ItemQueryResults> function)
-
depositAllExcept
public boolean depositAllExcept(Function<ItemQuery,ItemQueryResults> function)
-
withdraw
public boolean withdraw(String name, int amount)
-
withdraw
public boolean withdraw(int id, int amount)
-
deposit
public boolean deposit(String name, int amount)
-
deposit
public boolean deposit(int id, int amount)
-
getWithdrawMode
public Bank.WithdrawMode getWithdrawMode()
-
setWithdrawMode
public boolean setWithdrawMode(Bank.WithdrawMode mode)
-
-