public class DepositBox extends ItemContainer
Modifier and Type | Field and Description |
---|---|
static int |
SIZE |
static int |
STORE_1 |
static int |
STORE_10 |
static int |
STORE_5 |
static int |
STORE_ALL |
bank, bot, camera, chatbox, client, colorPicker, combat, configs, depositBox, dialogues, diaries, display, doorHandler, equipment, experienceTracker, favour, grandExchange, graphicObjects, groundItems, hintArrow, inventory, keyboard, logger, logoutTab, magic, map, menu, mouse, npcs, objects, players, prayer, projectiles, quests, settings, skills, store, tabs, trade, walking, widgets, worlds
Constructor and Description |
---|
DepositBox() |
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Closes the DepositBox interface
|
boolean |
deposit(int id,
int amount)
Deposits the specified item with the specified amount in the bank.
|
boolean |
deposit(java.lang.String name,
int amount)
Deposits the specified item with the specified amount in the bank.
|
boolean |
depositAll()
Deposits all items in the inventory in the bank.
|
boolean |
depositAll(Filter<Item>... filters)
Deposits all the items in the filter in the bank.
|
boolean |
depositAll(int... ids)
Deposits all the items in the filter in the bank.
|
boolean |
depositAll(java.util.List<Item> items)
Deposits all the items in the filter in the bank.
|
boolean |
depositAll(java.lang.String... names)
Deposits all the items in the filter in the bank.
|
boolean |
depositAllExcept(Filter<Item>... filters)
Deposits all the items in the inventory excluding the items in the
filters passed.
|
boolean |
depositAllExcept(int... ids)
Deposits all the items in the inventory excluding items with the ids
passed.
|
boolean |
depositAllExcept(java.util.List<Item> items)
Deposits all the items in the inventory excluding the list of items
passed.
|
boolean |
depositAllExcept(java.lang.String... names)
Deposits all the items in the inventory excluding items with the names
passed.
|
boolean |
depositLoot()
Deposits all loot items.
|
boolean |
depositWornItems()
Deposits all worn items.
|
int |
getInterfaceChildId()
Gets the interface child id that this item container represents.
|
int |
getInterfaceId()
Gets the interface id that this item container represents.
|
Item[] |
getItems()
Gets the array of items stored in this container in order.
|
RS2Widget |
getSlotWidget(int slotWidgetId) |
void |
initializeModule() |
boolean |
isOpen()
Checks whether a bank deposit box is opened
|
boolean |
open()
Opens the bank deposit box
|
contains, contains, contains, contains, containsAll, containsAll, filter, getAmount, getAmount, getAmount, getCapacity, getEmptySlots, getItem, getItem, getItem, getItemInSlot, getSlot, getSlot, getSlot, getSlot, getSlot, getSlotForNameThatContains, hover, interact, interact, interact, interact, interactWithNameThatContains, inverseFilter, isEmpty, isFull, onlyContains, onlyContains, onlyContains
exchangeContext, execute, getBank, getBot, getCamera, getChatbox, getClient, getColorPicker, getCombat, getConfigs, getDepositBox, getDialogues, getDiaries, getDisplay, getDoorHandler, getEquipment, getExperienceTracker, getFavour, getGrandExchange, getGraphicObjects, getGroundItems, getHintArrow, getInventory, getKeyboard, getLogoutTab, getMagic, getMap, getMenuAPI, getMouse, getNpcs, getObjects, getPlayers, getPrayer, getProjectiles, getQuests, getSettings, getSkills, getStore, getTabs, getTrade, getWalking, getWidgets, getWorlds, gRandom, gRandom, gRandom, initializeContext, log, log, myPlayer, myPosition, random, random, sleep, stripFormatting, warn
public static final int SIZE
public static final int STORE_ALL
public static final int STORE_1
public static final int STORE_5
public static final int STORE_10
public void initializeModule()
initializeModule
in class API
public int getInterfaceId()
ItemContainer
getInterfaceId
in class ItemContainer
public int getInterfaceChildId()
ItemContainer
getInterfaceChildId
in class ItemContainer
public boolean close()
public boolean depositWornItems()
public boolean depositLoot()
public boolean depositAll()
public Item[] getItems()
getItems
in class ItemContainer
public boolean isOpen()
public boolean open()
public boolean depositAll(int... ids)
ids
- The ids of the items to be deposited in the bank.public boolean depositAll(java.lang.String... names)
names
- The ids of the items to be deposited in the bank.public boolean depositAll(java.util.List<Item> items)
items
- The ids of the items to be deposited in the bank.@SafeVarargs public final boolean depositAll(Filter<Item>... filters)
filters
- The filter.public boolean depositAllExcept(int... ids)
ids
- Item ids to ignore when depositing.public boolean depositAllExcept(java.lang.String... names)
names
- Item names to ignore when depositing.public boolean depositAllExcept(java.util.List<Item> items)
items
- The list.@SafeVarargs public final boolean depositAllExcept(Filter<Item>... filters)
filters
- The filters.public RS2Widget getSlotWidget(int slotWidgetId)
public boolean deposit(int id, int amount)
id
- The item id.amount
- The amount to deposit. STORE_ALL
or 0 defines the
option Store-All.public boolean deposit(java.lang.String name, int amount)
name
- The item name.amount
- The amount to deposit. STORE_ALL
or 0 defines the
option Store-All.