public interface ILocalPlayerAPI
Modifier and Type | Method and Description |
---|---|
Player |
get() |
int |
getAnimation()
Gets the animation id.
|
int[] |
getAppearanceIds()
Gets the appearance ids of this player.
|
int |
getCombatLevel()
Gets the combat level of this player.
|
Tile |
getDestination()
Gets the walking destination of this player.
|
Direction |
getDirection()
Gets the current cardinal direction of this player based on
getRotation() . |
int |
getHealthPercent()
Gets the health of this player.
|
int |
getHeight()
Gets the height of the player.
|
int[] |
getHitsplatCycles() |
int[] |
getHitsplatTypes() |
int[] |
getHitsplatValues() |
int |
getId()
Gets the id of this player.
|
int |
getIdleAnimation()
Gets the idle animation id.
|
Actor |
getInteracting()
Gets the actor that this player is interacting with (e.g.
|
Tile |
getLocation()
Gets the tile that this player is located on in the world.
|
int |
getMembershipDays()
Gets the membership days on the account.
|
java.lang.String |
getMessage()
Gets the dialogue/message above the players head.
|
Model |
getModel()
Gets the model.
|
int |
getModelHeight()
Gets the height of the model.
|
java.lang.String |
getName()
Gets the name of the player.
|
int |
getNPCTransformationId()
Gets the id of this player when in npc-based form.
|
int |
getPathSize() |
byte[] |
getPathTraversed() |
int[] |
getPathX() |
int[] |
getPathY() |
int |
getPlane()
Gets the z-coordinate, also known as the floor or level.
|
int |
getPrayerIcon()
Gets the prayer icon above this players head.
|
int |
getRotation()
Gets the current rotation as an angle.
|
SceneOffset |
getSceneOffset()
Gets the scene offset for this player.
|
int |
getSelfInteracting()
Gets the interacting index in the npc or players array.
|
int |
getSkullIcon()
Gets the skull icon above this players head.
|
int[] |
getSpecialHitsplatValues() |
int |
getTeam()
Gets the team id of this player.
|
int |
getWildernessLevel()
Gets the current wilderness level.
|
int |
getX()
Gets the x-coordinate.
|
int |
getY()
Gets the y-coordinate.
|
boolean |
hasMembership()
Gets whether or not we have membership.
|
default boolean |
isAnimating()
Determines if the player is animating based on
getAnimation() . |
boolean |
isAttacking()
Gets whether or not this player is attacking.
|
boolean |
isFacing(Locatable locatable)
Determines if the player is facing the given locatable.
|
boolean |
isFemale()
Gets whether or not this player is a female character.
|
boolean |
isInCombat()
Gets whether or not this player is in combat.
|
boolean |
isInWilderness()
Gets whether or not we are in the wilderness.
|
default boolean |
isMale()
Gets whether or not this player is a male character.
|
boolean |
isMoving()
Gets whether or not this player is moving.
|
boolean |
isStaminaActive() |
Player get()
int getId()
java.lang.String getName()
int getCombatLevel()
int getTeam()
int getPrayerIcon()
int getSkullIcon()
java.lang.String getMessage()
int getX()
int getY()
int getPlane()
Tile getLocation()
Tile
SceneOffset getSceneOffset()
SceneOffset
int[] getPathX()
int[] getPathY()
int getPathSize()
byte[] getPathTraversed()
Tile getDestination()
boolean isMoving()
int getRotation()
Direction
Direction getDirection()
getRotation()
.boolean isFacing(Locatable locatable)
locatable
- the locatableint getAnimation()
int getIdleAnimation()
default boolean isAnimating()
getAnimation()
.getAnimation()
is not -1, false otherwiseActor getInteracting()
int getSelfInteracting()
int getModelHeight()
int getHeight()
int[] getHitsplatValues()
int[] getHitsplatTypes()
int[] getHitsplatCycles()
int[] getSpecialHitsplatValues()
int getHealthPercent()
boolean isInCombat()
boolean isAttacking()
isInCombat()
and getInteracting()
not being null.boolean isFemale()
default boolean isMale()
int[] getAppearanceIds()
int getNPCTransformationId()
int getWildernessLevel()
boolean isInWilderness()
int getMembershipDays()
boolean hasMembership()
boolean isStaminaActive()