| Modifier and Type | Field and Description | 
|---|---|
Bank | 
bank
The  
Bank instance. | 
Bot | 
bot
The  
Bot instance. | 
Camera | 
camera
The  
Camera instance. | 
Chatbox | 
chatbox
The  
Chatbox instance. | 
Client | 
client
The  
Client instance. | 
ColorPicker | 
colorPicker
The  
ColorPicker instance. | 
Combat | 
combat
The  
Combat instance. | 
Configs | 
configs
The  
Configs instance. | 
DepositBox | 
depositBox
The  
DepositBox instance. | 
Dialogues | 
dialogues
The  
Dialogues instance. | 
Diaries | 
diaries
The  
Diaries instance. | 
Display | 
display
The (@link org.osbot.rs07.api.Display) instance. 
 | 
DoorHandler | 
doorHandler
The  
DoorHandler instance. | 
Equipment | 
equipment
The  
Equipment instance. | 
ExperienceTracker | 
experienceTracker
The  
ExperienceTracker instance. | 
Favour | 
favour
The  
Favour instance | 
GrandExchange | 
grandExchange
The (@link org.osbot.rs07.api.GrandExchange) instance. 
 | 
GraphicObjects | 
graphicObjects
The  
GraphicObjects instance | 
GroundItems | 
groundItems
The  
GroundItems instance. | 
HintArrow | 
hintArrow
The  
HintArrow instance. | 
Inventory | 
inventory
The  
Inventory instance. | 
Keyboard | 
keyboard
The  
Keyboard instance. | 
org.osbot.utility.Logger | 
logger
The  
Logger instance. | 
LogoutTab | 
logoutTab
The  
LogoutTab instance. | 
Magic | 
magic
The  
Magic instance. | 
Map | 
map
The  
Map instance. | 
Menu | 
menu
The  
Menu instance. | 
Mouse | 
mouse
The  
Mouse instance. | 
NPCS | 
npcs
The  
NPCS instance. | 
Objects | 
objects
The  
Objects instance. | 
Players | 
players
The  
Players instance. | 
Prayer | 
prayer
The  
Prayer instance. | 
Projectiles | 
projectiles
The (@link org.osbot.rs07.api.Projectiles) instance. 
 | 
Quests | 
quests
The  
Quests instance. | 
Settings | 
settings
The  
Settings instance. | 
Skills | 
skills
The  
Skills instance. | 
Store | 
store
The  
Store instance. | 
Tabs | 
tabs
The  
Tabs instance. | 
Trade | 
trade
The  
Trade instance. | 
Walking | 
walking
The  
Walking instance. | 
Widgets | 
widgets
The  
Widgets instance. | 
Worlds | 
worlds
The (@link org.osbot.rs07.api.Worlds) instance. 
 | 
| Constructor and Description | 
|---|
MethodProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
MethodProvider | 
exchangeContext(Bot bot)
This class and method can be used to create extensions to the API with
 full direct access to the OSBot 2 API within your extensions. 
 | 
Event | 
execute(Event event)
Provides an event to the engine for execution. 
 | 
Bank | 
getBank()
Obtains the  
Bank instance. | 
Bot | 
getBot()
Gets the  
Bot instance. | 
Camera | 
getCamera()
Obtains the  
Camera instance. | 
Chatbox | 
getChatbox()
Obtains the  
Chatbox instance. | 
Client | 
getClient()
Gets the  
Client instance. | 
ColorPicker | 
getColorPicker()
Obtains the  
ColorPicker instance. | 
Combat | 
getCombat()
Obtains the  
Combat instance. | 
Configs | 
getConfigs()
Obtains the  
Configs instance. | 
DepositBox | 
getDepositBox()
Obtains the  
DepositBox instance. | 
Dialogues | 
getDialogues()
Obtains the  
Dialogues instance. | 
Diaries | 
getDiaries()
Obtains the  
Diaries instance. | 
Display | 
getDisplay()
Obtains the  
Display instance. | 
DoorHandler | 
getDoorHandler()
Obtains the  
DoorHandler instance. | 
Equipment | 
getEquipment()
Obtains the  
Equipment instance. | 
ExperienceTracker | 
getExperienceTracker()
Obtains the  
ExperienceTracker instance. | 
Favour | 
getFavour()
Obtains the  
Favour instance. | 
GrandExchange | 
getGrandExchange()
Obtains the  
GrandExchange instance. | 
GraphicObjects | 
getGraphicObjects()
Obtains the  
GraphicObjects instance. | 
GroundItems | 
getGroundItems()
Obtains the  
NPCS instance. | 
HintArrow | 
getHintArrow()
Obtains the  
HintArrow instance. | 
Inventory | 
getInventory()
Obtains the  
Inventory instance. | 
Keyboard | 
getKeyboard()
Obtains the  
Keyboard instance. | 
LogoutTab | 
getLogoutTab()
Obtains the  
LogoutTab instance. | 
Magic | 
getMagic()
Obtains the  
Magic instance. | 
Map | 
getMap()
Obtains the  
Map instance. | 
Menu | 
getMenuAPI()
Obtains the  
Menu instance. | 
Mouse | 
getMouse()
Obtains the  
Mouse instance. | 
NPCS | 
getNpcs()
Obtains the  
NPCS instance. | 
Objects | 
getObjects()
Obtains the  
Objects instance. | 
Players | 
getPlayers()
Obtains the  
Players instance. | 
Prayer | 
getPrayer()
Obtains the  
Prayer instance. | 
Projectiles | 
getProjectiles()
Obtains the  
Projectiles instance. | 
Quests | 
getQuests()
Obtains the  
Quests instance. | 
Settings | 
getSettings()
Obtains the  
Settings instance. | 
Skills | 
getSkills()
Obtains the  
Skills instance. | 
Store | 
getStore()
Obtains the  
Store instance | 
Tabs | 
getTabs()
Obtains the  
Tabs instance. | 
Trade | 
getTrade()
Obtains the  
Trade instance. | 
Walking | 
getWalking()
Obtains the  
Walking instance. | 
Widgets | 
getWidgets()
Obtains the  
RS2Widget instance. | 
Worlds | 
getWorlds()
Obtains the  
Worlds instance. | 
static int | 
gRandom(int mean,
       double stdDeviation)
Deprecated.  
 | 
static int | 
gRandom(int mean,
       double stdDeviation,
       int min,
       int max)
Deprecated.  
 | 
static int | 
gRandom(int lowerBound,
       int upperBound,
       double stdDeviation)
Deprecated.  
 | 
MethodProvider | 
initializeContext(Bot bot)
Deprecated. 
 
For internal use only. 
 | 
void | 
log(java.lang.Object object)
Logs a message to the console. 
 | 
void | 
log(java.lang.String s)
Logs a message to the console. 
 | 
Player | 
myPlayer()
Obtains the  
Player instance. | 
Position | 
myPosition()
Obtains the player's current position. 
 | 
static int | 
random(int v)
Generates a random integer between 0 and  
v (exclusive). | 
static int | 
random(int min,
      int max)
Generates a random integer between  
min and max (both
 inclusive). | 
static void | 
sleep(long ms)
Sleeps for the specified amount of milliseconds. 
 | 
static java.lang.String | 
stripFormatting(java.lang.String input)
Removes any html tags from the given string and returns the stripped
 version. 
 | 
void | 
warn(java.lang.String s)
Logs a message to the console. 
 | 
public org.osbot.utility.Logger logger
Logger instance.public GroundItems groundItems
GroundItems instance.public DepositBox depositBox
DepositBox instance.public ColorPicker colorPicker
ColorPicker instance.public DoorHandler doorHandler
DoorHandler instance.public ExperienceTracker experienceTracker
ExperienceTracker instance.public GrandExchange grandExchange
public Worlds worlds
public Projectiles projectiles
public Display display
public GraphicObjects graphicObjects
GraphicObjects instancepublic static java.lang.String stripFormatting(java.lang.String input)
input - The input string containing html tags.public static int random(int v)
v (exclusive).v - The upper bound (exclusive).v (exclusive).public static int random(int min,
                         int max)
min and max (both
 inclusive).min - The lower bound (inclusive).max - The upper bound (inclusive).min and max (both
 inclusive).@Deprecated
public static int gRandom(int mean,
                                       double stdDeviation)
                                throws java.lang.IllegalArgumentException
mean - The mean (must be positive).stdDeviation - The standard deviation.java.lang.IllegalArgumentException - This will be thrown when you specify a mean lower than 0.@Deprecated
public static int gRandom(int lowerBound,
                                       int upperBound,
                                       double stdDeviation)
                                throws java.lang.IllegalArgumentException
lowerBound - The lower bound to define the mean.upperBound - The upper bound to define the mean.stdDeviation - The standard deviation.java.lang.IllegalArgumentException - This will be thrown when you specify an upper bound that's
                                  equal or lower than the lower bound.@Deprecated
public static int gRandom(int mean,
                                       double stdDeviation,
                                       int min,
                                       int max)
                                throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic static void sleep(long ms)
                  throws java.lang.InterruptedException
ms - Number of milliseconds to sleep. Must be positive.java.lang.InterruptedException - Thrown when this thread is interrupted.public MethodProvider initializeContext(Bot bot)
Bot instance. As a scripter ignore the
 existence of this method.bot - The Bot instance.Bot
 instance under getMethods(), which is the main API entrance for
 the entire OSBot 2 API.public MethodProvider exchangeContext(Bot bot)
exchangeContext in class org.osbot.core.AbstractMethodProvider<Bot>bot - The Bot instance.public final Event execute(Event event)
event - The event to provide to the engine.public GroundItems getGroundItems()
NPCS instance.NPCS instance.public Widgets getWidgets()
RS2Widget instance.RS2Widget instance.public Inventory getInventory()
Inventory instance.Inventory instance.public DepositBox getDepositBox()
DepositBox instance.DepositBox instance.public Equipment getEquipment()
Equipment instance.Equipment instance.public Keyboard getKeyboard()
Keyboard instance.Keyboard instance.public ColorPicker getColorPicker()
ColorPicker instance.ColorPicker instance.public GrandExchange getGrandExchange()
GrandExchange instance.GrandExchange instance.public ExperienceTracker getExperienceTracker()
ExperienceTracker instance.ExperienceTracker instance.public LogoutTab getLogoutTab()
LogoutTab instance.LogoutTab instance.public Settings getSettings()
Settings instance.Settings instance.public Dialogues getDialogues()
Dialogues instance.Dialogues instance.public DoorHandler getDoorHandler()
DoorHandler instance.DoorHandler instance.public HintArrow getHintArrow()
HintArrow instance.HintArrow instance.public Projectiles getProjectiles()
Projectiles instance.Projectiles instance.public GraphicObjects getGraphicObjects()
GraphicObjects instance.GraphicObjects instance.public Position myPosition()
public void log(java.lang.Object object)
object - The object to logpublic void log(java.lang.String s)
s - The message to logpublic void warn(java.lang.String s)
s - The message to log.