MyPlayer

public class MyPlayer

Static convenience methods for the local player.

Types

AccountType
Link copied to clipboard
public enum AccountType
An account type
TeleblockState
Link copied to clipboard
public enum TeleblockState
The various states of teleblock 0 = not currently active 0 - 100 = not active, but immune 100 - 600 = currently active

Functions

get
Link copied to clipboard
static Optional<Playerget()
Gets the Player that corresponds to the local player
getAccountType
Link copied to clipboard
static MyPlayer.AccountType getAccountType()
Gets the account type of the local player
getAnimation
Link copied to clipboard
static int getAnimation()
Gets the animation of local player
getCombatLevel
Link copied to clipboard
static int getCombatLevel()
Gets the local player's combat level
getCurrentHealth
Link copied to clipboard
static int getCurrentHealth()
Gets the current health of the local player
getCurrentHealthPercent
Link copied to clipboard
static double getCurrentHealthPercent()
Gets the local player's health percent out of 100
getDestination
Link copied to clipboard
static Optional<WorldTilegetDestination()
Gets the player's destination.
getMaxHealth
Link copied to clipboard
static int getMaxHealth()
Gets the max health of the local player
getMembershipDaysRemaining
Link copied to clipboard
static int getMembershipDaysRemaining()
Gets the remaining membership days of the local player
getPoisonDamage
Link copied to clipboard
static int getPoisonDamage()
Gets the amount of poison damage the current player is taking (how much damage the player will take next poison hit)
getPosition
Link copied to clipboard
static WorldTile getPosition()
Gets the position of the local player
getQuestPoints
Link copied to clipboard
static int getQuestPoints()
Gets the local player's quest points
getRunEnergy
Link copied to clipboard
static int getRunEnergy()
Gets the current run energy of the player character.
getTeleblockState
Link copied to clipboard
static Optional<MyPlayer.TeleblockStategetTeleblockState()
Gets the current teleblock state of the player
getTile
Link copied to clipboard
static WorldTile getTile()
Gets the tile of the local player
getTotalLevel
Link copied to clipboard
static int getTotalLevel()
Gets the total level of the local player
getUsername
Link copied to clipboard
static String getUsername()
Gets the username of the local player
getVenomDamage
Link copied to clipboard
static int getVenomDamage()
Gets the amount of venom damage the current player is taking (how much damage the player will take next venom hit)
isAnimating
Link copied to clipboard
static boolean isAnimating()
Checks if the local player is animating
isDiseased
Link copied to clipboard
static boolean isDiseased()
Checks if the local player is diseased
isHealthBarVisible
Link copied to clipboard
static boolean isHealthBarVisible()
Checks if the local player's health bar is visible
isMember
Link copied to clipboard
static boolean isMember()
Checks if the current player is a member
isMoving
Link copied to clipboard
static boolean isMoving()
Checks if the local player is moving
isPoisoned
Link copied to clipboard
static boolean isPoisoned()
Checks if the local player is poisoned
isPoisonImmune
Link copied to clipboard
static boolean isPoisonImmune()
Checks if the local player is poison immune
isStaminaActive
Link copied to clipboard
static boolean isStaminaActive()
Checks if a stamina potion is currently active
isVenomed
Link copied to clipboard
static boolean isVenomed()
Checks if the local player is venomed