Class Player
- java.lang.Object
-
- net.eternalclient.api.wrappers.interactives.Entity
-
- net.eternalclient.api.wrappers.interactives.Character
-
- net.eternalclient.api.wrappers.interactives.Player
-
- All Implemented Interfaces:
Identifiable
,Interactable
,Positionable
public class Player extends Character
A class representing a player character with various methods to retrieve player information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Player.State
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String[]
getActions()
java.lang.String
getColoredName()
int
getCombatLevel()
RSPlayerComposition
getComposition()
int[]
getEquipmentIDs()
java.lang.String[]
getEquipmentNames()
net.eternalclient.api.data.HeadIcon
getHeadIcon()
int
getHeight()
int
getID()
int
getIndex()
RSModel
getModel()
java.lang.String
getName()
Orientation
getOrientation()
int
getOrientationId()
RSPlayer
getPlayer()
net.eternalclient.api.data.SkullIcon
getSkullIcon()
EntityType
getType()
int
getWidth()
boolean
isClanMember()
boolean
isFemale()
boolean
isFriend()
boolean
isFriendsChatMember()
boolean
isSkulled()
boolean
isWearing(int... ids)
boolean
isWearing(java.lang.String... names)
void
setComposition(RSPlayerComposition composition)
java.lang.String
toString()
-
Methods inherited from class net.eternalclient.api.wrappers.interactives.Character
getActor, getAllTargetedByNPC, getAllTargetedByPlayer, getAnimation, getAnimationFrame, getHealthPercent, getLocalX, getLocalY, getMovementAnimation, getMovementCycle, getMovementFrame, getPlane, getPlayerCycles, getRegionX, getRegionY, getRunAnimation, getSceneX, getSceneY, getSpotAnimation, getSpotAnimationCycle, getSpotAnimationFrame, getSpotAnimationHeight, getStandAnimation, getTarget, getTargetedBy, getTargetedByNPC, getTargetedByPlayer, getTargetIndex, getWalkAnimation, getWorldView, getWorldX, getWorldY, isAnimating, isDead, isHealthBarVisible, isInCombat, isInteractingWith, isInteractingWith, isMoving, isStandingStill, setActor
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.eternalclient.api.interfaces.Identifiable
containsName, hasID, hasName
-
Methods inherited from interface net.eternalclient.api.interfaces.Interactable
containsAction, getClickBox, getConvexHull, getConvexHullOnScreen, getInteractID, getInteractPoint, getInteractX, getInteractY, getPolygons, getPolygonsOnScreen, hasAction, hasAction, interact, interact, interact, isOnScreen
-
Methods inherited from interface net.eternalclient.api.interfaces.Positionable
canReach, canReach, canReachSurrounding, canReachSurrounding, derive, derive, derive, distance, distance, distanceTo, distanceTo2D, distanceTo2DHypotenuse, distanceToHypotenuse, distanceToPath, draw, drawMinimapDot, drawText, getCanvasTextLocation, getCanvasTilePoly, GetChunkRotation, getLocalTile, getMinimapPoint, getMovementFlags, getRectArea, getRegionId, getRegionTile, getSceneTile, getSurroundingArea, getWalkableTile, getWorldTile, hasLineOfSightTo, hasLineOfSightTo, inLineOfSight, isInArea, isInArea, isInArea2D, isInArea2D, isInMeleeDistance, isInScene, isUnderRoof, locatedAt, pathTo, walkingDistance
-
-
-
-
Constructor Detail
-
Player
public Player(RSPlayer player)
-
-
Method Detail
-
getComposition
public RSPlayerComposition getComposition()
-
setComposition
public void setComposition(RSPlayerComposition composition)
-
getPlayer
public RSPlayer getPlayer()
-
getID
public int getID()
-
getName
public java.lang.String getName()
-
getColoredName
public java.lang.String getColoredName()
-
getType
public EntityType getType()
-
getActions
public java.lang.String[] getActions()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getOrientation
public Orientation getOrientation()
- Specified by:
getOrientation
in classEntity
-
getOrientationId
public int getOrientationId()
- Specified by:
getOrientationId
in classEntity
-
getHeadIcon
public net.eternalclient.api.data.HeadIcon getHeadIcon()
-
getSkullIcon
public net.eternalclient.api.data.SkullIcon getSkullIcon()
-
isSkulled
public boolean isSkulled()
-
isFemale
public boolean isFemale()
-
getEquipmentIDs
public int[] getEquipmentIDs()
-
getEquipmentNames
public java.lang.String[] getEquipmentNames()
-
isWearing
public boolean isWearing(int... ids)
-
isWearing
public boolean isWearing(java.lang.String... names)
-
getCombatLevel
public int getCombatLevel()
-
isFriend
public boolean isFriend()
-
isClanMember
public boolean isClanMember()
-
isFriendsChatMember
public boolean isFriendsChatMember()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-