public class SimplePlayer extends Clickable implements SimpleActor
Constructor and Description |
---|
SimplePlayer(net.runelite.api.Player player) |
Modifier and Type | Method and Description |
---|---|
boolean |
click(java.lang.String action)
This makes mouse click with option
|
boolean |
click(java.lang.String action,
java.lang.String option) |
java.lang.String[] |
getActions()
Returns Actions of the object
|
net.runelite.api.Actor |
getActor() |
int |
getAnimation() |
java.awt.geom.Rectangle2D |
getClickBounds() |
int |
getCombatLevel() |
int |
getGraphic() |
int |
getHealth()
Deprecated.
|
int |
getHealthRatio() |
net.runelite.api.Actor |
getInteracting() |
net.runelite.api.coords.WorldPoint |
getLocation()
Position in world of object
|
java.lang.String |
getName()
The name of said object
|
net.runelite.api.HeadIcon |
getOverHeadIcon() |
java.lang.String |
getOverheadText() |
net.runelite.api.Player |
getPlayer() |
net.runelite.api.PlayerComposition |
getPlayerDefinitions() |
net.runelite.api.SkullIcon |
getSkullIcon() |
int |
getTeam() |
boolean |
inCombat() |
boolean |
isAnimating() |
void |
useItemOnPlayer(SimpleItem item) |
click, clickOnMinimap, getPointForType, turnTo, validateInteractable, visibleOnScreen
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clickOnMinimap, distanceTo, within, withinRange
public net.runelite.api.Player getPlayer()
public net.runelite.api.Actor getActor()
getActor
in interface SimpleActor
public java.lang.String getName()
SimpleNamable
getName
in interface SimpleNamable
public java.awt.geom.Rectangle2D getClickBounds()
public void useItemOnPlayer(SimpleItem item)
public net.runelite.api.PlayerComposition getPlayerDefinitions()
public net.runelite.api.coords.WorldPoint getLocation()
SimpleLocatable
getLocation
in interface SimpleLocatable
public boolean inCombat()
public int getAnimation()
getAnimation
in interface SimpleActor
public boolean isAnimating()
isAnimating
in interface SimpleActor
public int getCombatLevel()
public int getGraphic()
@Deprecated public int getHealth()
public int getHealthRatio()
public net.runelite.api.Actor getInteracting()
getInteracting
in interface SimpleActor
public net.runelite.api.HeadIcon getOverHeadIcon()
public java.lang.String getOverheadText()
public net.runelite.api.SkullIcon getSkullIcon()
public int getTeam()
public java.lang.String[] getActions()
SimpleActionable
getActions
in interface SimpleActionable
public boolean click(java.lang.String action)
Clickable