Bank

public class Bank

Utilities for interacting with the Runescape bank.

See also

Functions

close
Link copied to clipboard
static boolean close()
Closes the banking interface.
contains
Link copied to clipboard
static boolean contains(Array<int> itemId)
Determines if the bank contains the given itemId by looking through the banking interface.
static boolean contains(Array<String> name)
Checks if any bank item exists with the specified name
static boolean contains(Predicate<Item> filter)
Checks if any bank item exists matching the specified filter
deposit
Link copied to clipboard
static boolean deposit(int itemId, int amount)
Deposits the specified amount of an item with the specified id
static boolean deposit(String itemName, int amount)
Deposits the specified amount of an item with the specified name
static boolean deposit(InventoryItem item, int amount)
Deposits the specified quantity of the specified item
depositAll
Link copied to clipboard
static boolean depositAll(int itemId)
Deposits all of an item with the specified id
static boolean depositAll(String itemName)
Deposits all of an item with the specified name
static boolean depositAll(InventoryItem item)
Deposits all of the specified item
depositEquipment
Link copied to clipboard
static boolean depositEquipment()
Deposits all equipment
depositInventory
Link copied to clipboard
static boolean depositInventory()
Deposits the entire inventory
ensureOpen
Link copied to clipboard
static boolean ensureOpen()
Ensures the bank is open.
getAll
Link copied to clipboard
static List<ItemgetAll()
Gets all the items from the banking interface.
getCount
Link copied to clipboard
static int getCount(Array<int> itemId)
Sums the item stacks of the bank items with the specified item ids
static int getCount(Array<String> name)
Sums the item stacks of the bank items with the specified item names
static int getCount(Predicate<Item> filter)
Sums the item stacks of the bank items matching the specified filter
isDepositBoxOpen
Link copied to clipboard
static boolean isDepositBoxOpen()
Determines if the deposit box interface is open.
isNearby
Link copied to clipboard
static boolean isNearby()
Determines if the player character is in a bank by looking for Bank objects/npcs within 15 tiles.
isOpen
Link copied to clipboard
static boolean isOpen()
Determines if the banking interface is open.
open
Link copied to clipboard
@Deprecated(forRemoval = true)
static boolean open()
Finds the best banking object/npc in the 15 tile area and interacts with it to open the banking interface.
withdraw
Link copied to clipboard
static boolean withdraw(int itemId, int amount)
Withdraws the specified amount of an item with the specified id
static boolean withdraw(String itemName, int amount)
Withdraws the specified amount of an item with the specified name
static boolean withdraw(Item item, int amount)
Withdraws the specified amount of the specified item
withdrawAll
Link copied to clipboard
static boolean withdrawAll(int itemId)
Withdraws all of an item with the specified id
static boolean withdrawAll(String itemName)
Withdraws all of an item with the specified name
static boolean withdrawAll(Item item)
Withdraws all of the specified item