public class Chatbox extends API
Modifier and Type | Class and Description |
---|---|
static class |
Chatbox.MessageType |
static class |
Chatbox.Tab |
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 |
---|
Chatbox() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Chatbox.MessageType messageType,
java.lang.String... strings)
Returns if the chatbox contains a message from the defined MessageType
|
int |
getInterfaceId()
Gets the widget root id of the chatbox
|
java.util.List<java.lang.String> |
getMessages(Chatbox.MessageType messageType)
Returns messages from the org.osbot.rs07.api.Chatbox
|
void |
initializeModule() |
boolean |
isOpen()
Checks if the chatbox is open
|
boolean |
isOpen(Chatbox.Tab tab)
Checks if a tab is open
|
boolean |
isVisible() |
boolean |
open(Chatbox.Tab tab)
Opens a tab
|
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 int getInterfaceId()
public boolean isOpen()
public boolean isOpen(Chatbox.Tab tab)
tab
- The tab to checkpublic boolean open(Chatbox.Tab tab)
tab
- The tab to openpublic java.util.List<java.lang.String> getMessages(Chatbox.MessageType messageType)
messageType
- The type of chatbox messages you want to returnpublic boolean contains(Chatbox.MessageType messageType, java.lang.String... strings)
messageType
- The type of messages you would like to filterstrings
- The strings you would like to check forpublic boolean isVisible()