public class Client extends RS07Wrapper<org.osbot.rs07.accessor.XClient>
Modifier and Type | Class and Description |
---|---|
static class |
Client.AccountType |
static class |
Client.GameState
Represents the game state of the client.
|
static class |
Client.LoginState
Represents stages in the client's login protocol.
|
Constructor and Description |
---|
Client(org.osbot.rs07.accessor.XClient instance) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Deprecated.
For internal use only
|
long |
gameClockMs()
Milliseconds elapsed since the client has started.
|
Client.AccountType |
getAccountType()
Gets the
AccountType of the account |
int |
getCurrentTick()
Gets the client's internal tick counter value.
|
Client.GameState |
getGameState()
Gets the current
Client.GameState . |
java.util.List<HeadMessage> |
getHeadMessages(Character<?> c)
Deprecated.
|
int[][][] |
getInstanceTemplate()
Gets the instance map templates
|
Client.LoginState |
getLoginState()
Gets the
Client.LoginState . |
int |
getLoginUIState()
Returns the current menu state for the login screen.
|
int |
getMyPlayerIndex()
Gets the remote index of our player context.
|
java.lang.String |
getUsername() |
java.lang.String |
getVersion() |
boolean |
hasFocus()
If the client is focused.
|
boolean |
isHumanInputEnabled() |
boolean |
isLoading()
Checks if the game is loading
|
boolean |
isLoggedIn()
Returns if you are currently logged in.
|
boolean |
isMember()
Checks if the logged in account is member
|
boolean |
isResized() |
boolean |
isWelcomeScreenVisible() |
void |
onHeadMessage(Character<?> c)
Deprecated.
|
void |
wait(int ticks)
Waits the specified amount of client iteration ticks .
|
getClient, getMethods
public java.lang.String getUsername() throws java.lang.SecurityException
java.lang.SecurityException
public java.lang.String getVersion()
public boolean isHumanInputEnabled()
public boolean isWelcomeScreenVisible()
public boolean isMember()
public int getCurrentTick()
public long gameClockMs()
public boolean isResized()
public int[][][] getInstanceTemplate()
public Client.LoginState getLoginState()
Client.LoginState
.Client.LoginState
.public Client.GameState getGameState()
Client.GameState
.Client.GameState
.public boolean isLoggedIn()
public boolean isLoading()
public int getLoginUIState()
public int getMyPlayerIndex()
public boolean hasFocus()
@Deprecated public void onHeadMessage(Character<?> c)
@Deprecated public java.util.List<HeadMessage> getHeadMessages(Character<?> c)
@Deprecated public void cleanup()
public void wait(int ticks) throws java.lang.InterruptedException
ticks
- The ticks to wait @see Client#getCurrentTick()java.lang.InterruptedException
public Client.AccountType getAccountType()
AccountType
of the accountAccountType
of the account