java.lang.Object
net.botwithus.rs3.game.Client
Client represents the jag::Client in the RuneScape 3 source.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic @Nullable Client.GameStateGets the game's current state.static @Nullable LocalPlayerRetrieves the local player in the scene.static doubleGets the running time of the bot in seconds.static intstatic booleanisMember()static Vector2fproject(ScenePosition pos) static voidsetAntiAFK(boolean enabled) static Stringuuid()static CoordinateworldToScreen(ScenePosition scene)
-
Constructor Details
-
Client
public Client()
-
-
Method Details
-
getClientCycle
public static int getClientCycle() -
getServerTicks
public static int getServerTicks() -
getRunningTimeInSeconds
public static double getRunningTimeInSeconds()Gets the running time of the bot in seconds.- Returns:
- the running time of the bot in seconds.
-
getGameState
Gets the game's current state.- Returns:
- An entry from GameState, otherwise null.
-
getLocalPlayer
Retrieves the local player in the scene. If it cannot be found or is not a valid entity, returns null.- Returns:
- a Player object representing the local player. Returns null if no local player is found.
-
worldToScreen
-
project
-
uuid
-
isMember
public static boolean isMember()- Returns:
- if the logged in is a member
-
setAntiAFK
public static void setAntiAFK(boolean enabled)
-