public class SimpleBank extends SimpleItemQuery<SimpleItem>
Modifier and Type | Class and Description |
---|---|
static class |
SimpleBank.Amount |
ctx
Constructor and Description |
---|
SimpleBank(ClientContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
bankOpen() |
boolean |
closeBank() |
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
|
java.util.List<SimpleItem> |
list() |
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}
|
filter, filter, filter, filterContains, filterHasAction, filterHasAction, population
contains, filter, isEmpty, iterator, next, peekNext, populate, population, reverse, shuffle, size, sort, toStream
public SimpleBank(ClientContext ctx)
ctx
- public java.util.List<SimpleItem> list()
public boolean bankOpen()
public boolean depositBoxOpen()
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(java.lang.String name, SimpleBank.Amount amount)
name
- amount
- public boolean deposit(java.lang.String name, int amount)
name
- amount
- public boolean deposit(int id, int amount)
id
- 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 depositInventory()
public boolean depositEquipment()
public boolean closeBank()