public class Store extends ItemContainer
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 |
---|
Store() |
Modifier and Type | Method and Description |
---|---|
boolean |
buy(int id,
int amount)
Buys the specified amount of the item (or the largest option lesser than
amount)
|
boolean |
buy(java.lang.String name,
int amount)
Buys the specified amount of the item (or the largest option lesser than
amount)
|
boolean |
close()
Closes the store interface
|
int |
getAmount(int id)
Returns the amount of an item in the store
|
int |
getAmount(java.lang.String name)
Returns the amount of an item in the store
|
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 an array of store items
|
int |
getSlot(Item item)
Gets the slot associated with an item in the store
|
java.awt.Rectangle |
getSlotBoundingBox(int slot)
Gets the bounding box for the given item slot
|
void |
initializeModule() |
boolean |
interact(int slot,
java.lang.String... actions)
Interacts with the slot specified.
|
boolean |
isOpen() |
boolean |
sell(int id,
int amount)
Sells the specified amount of the item (or the largest option lesser than
amount)
|
boolean |
sell(java.lang.String name,
int amount)
Sells the specified amount of the item (or the largest option lesser than
amount)
|
contains, contains, contains, contains, containsAll, containsAll, filter, getAmount, getAmount, getAmount, getCapacity, getEmptySlots, getItem, getItem, getItem, getItemInSlot, getSlot, getSlot, getSlot, getSlot, getSlotForNameThatContains, hover, 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 void initializeModule()
initializeModule
in class API
public boolean isOpen()
public Item[] getItems()
getItems
in class ItemContainer
public boolean sell(java.lang.String name, int amount)
name
- Name of item to sellamount
- Amount to sell (if not 1, 5, or 10, api will select largest
option less than amount)public boolean sell(int id, int amount)
id
- Id of item to sellamount
- Amount to sell (if not 1, 5, or 10, api will select largest
option less than amount)public boolean buy(int id, int amount)
id
- ID of item to buyamount
- Amount to buy (if not 1, 5, or 10, api will select largest
option less than amount)public boolean buy(java.lang.String name, int amount)
name
- Name of item to buyamount
- Amount to buy (if not 1, 5, or 10, api will select largest
option less than amount)public int getAmount(int id)
id
- ID of itempublic int getAmount(java.lang.String name)
name
- Name of itempublic boolean close()
public boolean interact(int slot, java.lang.String... actions)
interact
in class ItemContainer
slot
- The slot to interact with.actions
- The action to interact with.public int getSlot(Item item)
getSlot
in class ItemContainer
item
- The item to match.public java.awt.Rectangle getSlotBoundingBox(int slot)
slot
- The slot to get the bounding box ofpublic int getInterfaceId()
ItemContainer
getInterfaceId
in class ItemContainer
public int getInterfaceChildId()
ItemContainer
getInterfaceChildId
in class ItemContainer