public class SimpleBank extends SimpleItemQuery<SimpleItem>
Modifier and Type | Class and Description |
---|---|
static class |
SimpleBank.Amount |
Constructor and Description |
---|
SimpleBank(ClientContext c) |
Modifier and Type | Method and Description |
---|---|
boolean |
bankOpen()
Checks if the bank is open
|
boolean |
closeBank()
Closes the bank or depositbox if it's open
|
boolean |
deposit(int id,
int amount)
Deposit's {amount} of item with id={id}
|
boolean |
deposit(int id,
SimpleBank.Amount amount) |
boolean |
deposit(java.lang.String name,
int amount)
Deposit's {amount} of item with name={name}
|
boolean |
deposit(java.lang.String name,
SimpleBank.Amount amount)
Deposit's {amount} of item with name={name}
|
boolean |
depositAllExcept(int... ids)
Deposit's all items who's id match {ids}
|
boolean |
depositAllExcept(java.util.function.Predicate<SimpleItem> filter)
Deposit's all items that aren't accepted by the {filter}
|
boolean |
depositAllExcept(java.lang.String... names)
Deposit's all items name's that match {names}
|
boolean |
depositBoxOpen()
Checks if deposit box is open
|
boolean |
depositEquipment()
Clicks the deposit equipment widget in the runescape bank
|
boolean |
depositInventory()
Clicks the deposit inventory widget in the runescape bank
|
int |
getTabsAvailable()
Sums up how many tabs you have available.
|
boolean |
notedMode()
Returns whether the bank noted mode is toggled
|
int |
openTab()
Gets the current tab open.
|
boolean |
openTab(int tab)
Opens the selected bank tab.
|
SimpleBank.Amount |
quantityMode() |
boolean |
toggleNotedItem(boolean noted)
Toggles noted or non noted mode in the runescape bank
|
boolean |
withdraw(int id,
int amount)
Withdraws {amount} of item with id={id}
|
boolean |
withdraw(int id,
SimpleBank.Amount amount)
Withdraws {amount} of item with id={id}
|
boolean |
withdraw(java.lang.String name,
int amount)
Withdraws {amount} of item with name={name}
|
boolean |
withdraw(java.lang.String name,
SimpleBank.Amount amount)
Withdraws {amount} of item with name={name}
|
int |
withdrawXAmount() |
filter, filter, filter, filterHasAction, filterHasAction, population
contains, filter, isEmpty, iterator, next, peekNext, populate, population, reverse, shuffle, size, sort, toStream
public SimpleBank(ClientContext c)
public boolean withdraw(int id, SimpleBank.Amount amount)
id
- amount
- public boolean withdraw(java.lang.String name, SimpleBank.Amount amount)
name
- amount
- public boolean withdraw(int id, int amount)
id
- amount
- public boolean withdraw(java.lang.String name, int amount)
name
- amount
- public boolean deposit(int id, SimpleBank.Amount amount)
public boolean deposit(int id, int amount)
id
- amount
- public boolean deposit(java.lang.String name, SimpleBank.Amount amount)
name
- amount
- public boolean deposit(java.lang.String name, int amount)
name
- amount
- public boolean depositAllExcept(int... ids)
ids
- public boolean depositAllExcept(java.lang.String... names)
names
- public boolean depositAllExcept(java.util.function.Predicate<SimpleItem> filter)
filter
- public boolean bankOpen()
public boolean depositBoxOpen()
public boolean notedMode()
public boolean depositInventory()
public boolean depositEquipment()
public boolean closeBank()
public boolean toggleNotedItem(boolean noted)
noted
- public SimpleBank.Amount quantityMode()
public int withdrawXAmount()
public int openTab()
public boolean openTab(int tab)
tab
- The bank tab id. 0 is for all items, 1-9 are the tabs.public int getTabsAvailable()