GameState

public class GameState

Utilities for inspecting the client game state

Types

State
Link copied to clipboard
public enum State
A current state of the game, such as loading, at login screen, or logged in.

Functions

getFps
Link copied to clipboard
static int getFps()
Gets the current fps.
getHintArrowPosition
Link copied to clipboard
static Optional<LocalTilegetHintArrowPosition()
Gets the tile that the hint arrow is pointing to.
getLoopCycle
Link copied to clipboard
static int getLoopCycle()
Gets the runescape client's current loop cycle.
getMinimapRotation
Link copied to clipboard
static int getMinimapRotation()
Gets the rotation of the minimap
getSelectedItemName
Link copied to clipboard
static String getSelectedItemName()
Gets the name of the selected item if there is one.
getSetting
Link copied to clipboard
static int getSetting(int index)
Pulls Setting value from the client with the given index.
getState
Link copied to clipboard
static GameState.State getState()
Gets the current state of the game
getUpText
Link copied to clipboard
static String getUpText()
Gets the game's "uptext" that appears in the top left corner of the screen.
getVarbit
Link copied to clipboard
static int getVarbit(int id)
Pulls org.tribot.script.sdk.VarBit value from the client with the given varbit ID.
getVarc
Link copied to clipboard
static Optional<ObjectgetVarc(int index)
Gets the client-side variable at the specified index
getVarcInt
Link copied to clipboard
static Optional<IntegergetVarcInt(int index)
Gets the client-side variable at the specified index as an int
getVarcString
Link copied to clipboard
static Optional<StringgetVarcString(int index)
Gets the client-side variable at the specified index as a string
getViewportHeight
Link copied to clipboard
static int getViewportHeight()
Determines the height of the viewport (OSRS scene render).
getViewportWidth
Link copied to clipboard
static int getViewportWidth()
Determines the width of the viewport (OSRS scene render).
isAnyItemSelected
Link copied to clipboard
static boolean isAnyItemSelected()
Determines if an inventory item is selected (highlighted).
isGravestoneActive
Link copied to clipboard
static boolean isGravestoneActive()
Checks if a gravestone is active
isInBuildingMode
Link copied to clipboard
static boolean isInBuildingMode()
Determines if the game is in "building mode", which can be toggled when in your own Player Owned House.
isInInstance
Link copied to clipboard
static boolean isInInstance()
Checks if we are in an instance
isLoading
Link copied to clipboard
static boolean isLoading()
Checks if the game is loading the current player.