public class ClientContext
extends java.lang.Object
Constructor and Description |
---|
ClientContext(net.runelite.api.Client client) |
Modifier and Type | Method and Description |
---|---|
boolean |
bobSolver() |
boolean |
bobSolver(boolean state) |
SimpleBank |
getBank()
Deprecated.
|
net.runelite.api.Client |
getClient() |
Combat |
getCombat()
Deprecated.
|
Definitions |
getDefinitions()
Deprecated.
|
Dialogue |
getDialogue()
Deprecated.
|
SimpleEquipment |
getEquipment()
Deprecated.
|
FairyRing |
getFairyRing()
Deprecated.
|
SimpleGroundItems |
getGroundItems()
Deprecated.
|
SimpleWidgets |
getInterfaces()
Deprecated.
|
SimpleInventory |
getInventory()
Deprecated.
|
Keyboard |
getKeyboard()
Deprecated.
|
Magic |
getMagic()
Deprecated.
|
SimpleMouse |
getMouse()
Deprecated.
|
SimpleNpcs |
getNpcs()
Deprecated.
|
SimpleObjects |
getObjects()
Deprecated.
|
Pathing |
getPathing()
Deprecated.
|
SimplePlayers |
getPlayers()
Deprecated.
|
PortalTeleports |
getPortalTeleports()
Deprecated.
|
SimplePrayers |
getPrayer()
Deprecated.
|
Projectiles |
getProjectiles()
Deprecated.
|
SimpleShop |
getShop()
Deprecated.
|
Trade |
getTrade()
Deprecated.
|
Viewport |
getViewport()
Deprecated.
|
boolean |
inFixedScreen() |
static ClientContext |
instance() |
void |
log(java.lang.String log,
java.lang.Object... objects)
Will print specified formatted string {log} to console and script log inside of the bot panel
|
boolean |
onCondition(java.util.function.BooleanSupplier condition)
Will sleep the current thread for a maximum of 5 seconds whilst checking if the {condition} has been met every 500ms's
|
boolean |
onCondition(java.util.function.BooleanSupplier condition,
int timeout)
Will sleep the current thread for a maximum of {timeout}ms's whilst checking if the {condition} has been met every 500ms's
|
boolean |
onCondition(java.util.function.BooleanSupplier condition,
int timeout,
int amount)
Will sleep the current thread for the specified {timeout} * {amount} or until the {condition} is met.
|
boolean |
sendLogout()
Will log you out if you're currently logged in
|
void |
sleep(int ms)
Will sleep the current thread for {ms}ms's
|
void |
sleep(int min,
int max)
Will sleep the current thread for a random amount of time between {min} and {max}
|
boolean |
sleepCondition(java.util.function.BooleanSupplier condition)
Refer to {onCondition(BooleanSupplier condition)}
|
boolean |
sleepCondition(java.util.function.BooleanSupplier condition,
int timeout)
Refer to {onCondition(BooleanSupplier condition, int timeout)}
|
boolean |
stopScript()
Will stop the currently running script, returns {true} if it has been stopped {false} otherwise
|
void |
submitLogCapture(java.lang.String log)
Will print {log} to script log inside of the bot panel
|
void |
updateStatus(java.lang.String status) |
public final Varpbits varpbits
public final SimpleGroundItems groundItems
public final SimpleInventory inventory
public final SimpleNpcs npcs
public final SimpleObjects objects
public final SimpleBank bank
public final SimpleShop shop
public final SimplePlayers players
public final SimplePrayers prayers
public final SimpleMouse mouse
@Deprecated public final SimpleWidgets interfaces
public final SimpleWidgets widgets
public final Keyboard keyboard
public final Magic magic
public final Definitions definitions
public final Pathing pathing
public final PortalTeleports portalTeleports
public final Viewport viewport
public final Dialogue dialogue
public final Combat combat
public final Trade trade
public final FairyRing fairyRing
public final Projectiles projectiles
public final SimpleSkills skills
public final Game game
public final SimpleEquipment equipment
public final ClientUser user
public final ScriptPaint paint
public final AntiBan antiBan
public static ClientContext instance()
public boolean sleepCondition(java.util.function.BooleanSupplier condition)
public boolean sleepCondition(java.util.function.BooleanSupplier condition, int timeout)
public boolean onCondition(java.util.function.BooleanSupplier condition)
condition
- the condition to sleep for until it is metpublic boolean onCondition(java.util.function.BooleanSupplier condition, int timeout)
condition
- the condition to sleep for until it is mettimeout
- the max amount of milliseconds to wait for checking the {condition}public boolean onCondition(java.util.function.BooleanSupplier condition, int timeout, int amount)
condition
- the condition to sleep for until it is mettimeout
- the amount of milliseconds to wait before checking the {condition} againamount
- the amount of times to check if the {condition} has been metpublic void sleep(int ms)
ms
- how long in milliseconds to sleep the current thread forpublic void sleep(int min, int max)
min
- minimum ms's to sleep formax
- maximum ms's to sleep forpublic boolean sendLogout()
public boolean stopScript()
public void updateStatus(java.lang.String status)
public void log(java.lang.String log, java.lang.Object... objects)
log
- objects
- public void submitLogCapture(java.lang.String log)
log
- public boolean inFixedScreen()
public boolean bobSolver()
public boolean bobSolver(boolean state)
@Deprecated public SimplePlayers getPlayers()
@Deprecated public SimpleInventory getInventory()
@Deprecated public SimpleNpcs getNpcs()
@Deprecated public SimpleObjects getObjects()
public net.runelite.api.Client getClient()
@Deprecated public SimpleGroundItems getGroundItems()
@Deprecated public SimpleMouse getMouse()
@Deprecated public Magic getMagic()
@Deprecated public Definitions getDefinitions()
@Deprecated public SimpleBank getBank()
@Deprecated public SimpleEquipment getEquipment()
@Deprecated public Pathing getPathing()
@Deprecated public PortalTeleports getPortalTeleports()
@Deprecated public SimplePrayers getPrayer()
@Deprecated public SimpleWidgets getInterfaces()
@Deprecated public Keyboard getKeyboard()
@Deprecated public Viewport getViewport()
@Deprecated public SimpleShop getShop()
@Deprecated public Dialogue getDialogue()
@Deprecated public Combat getCombat()
@Deprecated public Trade getTrade()
@Deprecated public FairyRing getFairyRing()
@Deprecated public Projectiles getProjectiles()