public abstract class Character<C extends org.osbot.rs07.accessor.XCharacter<?>> extends Animable<C> implements Entity
model, prioritized
Modifier and Type | Method and Description |
---|---|
int |
getAnimation()
Gets the current animation id of the character.
|
int |
getAnimation2()
Gets the current animation2 id of the character.
|
int |
getAnimationDelay()
Gets the current animation delay of the character.
|
int |
getAnimationSpot()
Deprecated.
|
int |
getAnimationStanding()
Gets the current standing animation of the character.
|
int |
getCombatTime()
Deprecated.
replaced by
getHitBarLoopCycle() |
int |
getCurrentHealth()
Deprecated.
Returns health percent
|
int |
getGridX()
Gets the grid x coordinate for this entity.
|
int |
getGridY()
Gets the grid y coordinate for this entity.
|
java.lang.String |
getHeadMessage()
Gets the chat message above the character.
|
int |
getHealth()
Deprecated.
Returns health percent
|
int |
getHealthPercent()
Gets the health in percentage form. (0% - 100%).
|
int |
getHealthPercentCache()
Gets the most recent health percent.
|
int |
getHitBarLoopCycle()
Gets the last client loop cycle counter value a hit was inflicted on this character.
|
abstract int |
getIndex()
Gets the index of this character
|
Character<?> |
getInteracting()
Gets the character that this character is currently facing/interacting.
|
int |
getLocalX()
Gets the local x coordinate for this entity.
|
int |
getLocalY()
Gets the local y coordinate for this entity.
|
int |
getMaximumHealth()
Deprecated.
Returns 100 by default.
|
abstract int |
getPrayerIcon() |
java.util.List<HeadMessage> |
getRecentMessages()
Gets the recent head messages (up to 30 seconds)
|
int |
getRotation()
Gets the rotation of this character.
|
int |
getRotationForCamera()
Gets the rotation of this character in the same coordinate system as the camera system.
|
int |
getSizeX()
Gets the size of this entity in the x dimension.
|
int |
getSizeY()
Gets the size of this entity in the y dimension.
|
int |
getWalkingQueueSize()
Gets the walking queue size of this character
|
int[] |
getWalkingQueueX()
Gets the walking queue for x coordinates of this character with the movement for the first to come client cycle to process
|
int[] |
getWalkingQueueY()
Gets the walking queue for y coordinates of this character with the movement for the first to come client cycle to process
|
int |
getX()
Gets the x coordinate for this entity.
|
int |
getY()
Gets the y coordinate for this entity.
|
int |
getZ()
Gets the z coordinate for this entity.
|
boolean |
hasMentionedPhrase(java.lang.String phrase,
long maxTime)
Checks if any of the character's recent head messages contains a certain phrase/string.
|
boolean |
hasMentionedPhrase(java.lang.String phrase,
long minTime,
long maxTime)
Checks if any of the character's recent head messages contains a certain phrase/string.
|
boolean |
hover()
Attempts to hover the mouse over the next click needed to interact with this
Interactable . |
boolean |
isAnimating()
Whether the character is performing an animation.
|
boolean |
isAttackable()
Whether this character is attackable.
|
boolean |
isHitBarVisible()
Checks if the hit bar of this character is visible
|
boolean |
isInteracting(Character<?> character)
Returns whether this character is facing/interacting with the
specified character.
|
boolean |
isMoving()
Checks if this character is moving
|
boolean |
isUnderAttack()
Whether the character is under attack.
|
getAnimable, getModelHeight
getHeight, getModel, isPrioritized, setPrioritized, updateModel
getClient, getMethods
equals, getBot, supplyWrappers, wrap, wrapArray
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exists, getArea, getBot, getClient, getDefinition, getHeight, getModel, getPosition, hasAction, interact, isVisible
getActions, getId, getModelIds, getName
public abstract int getIndex()
public abstract int getPrayerIcon()
public int getSizeX()
public int getSizeY()
public int getX()
public int getY()
public int getZ()
public int getLocalX()
public int getLocalY()
public int[] getWalkingQueueX()
public int[] getWalkingQueueY()
public int getWalkingQueueSize()
public boolean isMoving()
public int getGridX()
public int getGridY()
public int getRotation()
public int getRotationForCamera()
public java.lang.String getHeadMessage()
public int getAnimation()
public int getAnimation2()
public int getAnimationDelay()
@Deprecated public int getAnimationSpot()
Character#getSpotAnimation()
public int getAnimationStanding()
public boolean isAnimating()
public boolean isUnderAttack()
public boolean isAttackable()
public boolean isHitBarVisible()
@Deprecated public int getCombatTime()
getHitBarLoopCycle()
public int getHitBarLoopCycle()
public Character<?> getInteracting()
public boolean isInteracting(Character<?> character)
character
- The specified character.@Deprecated public int getCurrentHealth()
@Deprecated public int getMaximumHealth()
@Deprecated public int getHealth()
public int getHealthPercent()
getHealthPercentCache()
if you want older info.public int getHealthPercentCache()
public boolean hover()
Interactable
.
This method will never click the mouse, so it can be used to speed up scripts while they are idling.hover
in interface Interactable
public java.util.List<HeadMessage> getRecentMessages()
public boolean hasMentionedPhrase(java.lang.String phrase, long maxTime)
phrase
- The phrase to check for.maxTime
- The amount of time to look for in the past (up to 30 seconds) in milliseconds.public boolean hasMentionedPhrase(java.lang.String phrase, long minTime, long maxTime)
phrase
- The phrase to check for.minTime
- The amount of time to in the past to skip (up to 30 seconds) in milliseconds.maxTime
- The amount of time to look for in the past (up to 30 seconds) in milliseconds.