public class SimpleNpc extends Clickable implements SimpleActor, SimpleIdentifiable
Constructor and Description |
---|
SimpleNpc(net.runelite.api.NPC npc) |
Modifier and Type | Method and Description |
---|---|
boolean |
click(int option) |
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 |
getHealth()
Deprecated.
|
int |
getHealthRatio() |
int |
getId()
Returns id of the object
|
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.NPC |
getNpc() |
net.runelite.api.NPCComposition |
getNpcDefinitions() |
net.runelite.api.HeadIcon |
getOverhead() |
boolean |
inCombat() |
boolean |
isAnimating() |
boolean |
isDead() |
boolean |
visibleOnScreen() |
clickOnMinimap, getPointForType, turnTo, validateInteractable
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clickOnMinimap, distanceTo, within, withinRange
public java.lang.String getName()
SimpleNamable
getName
in interface SimpleNamable
public java.awt.geom.Rectangle2D getClickBounds()
public int getId()
SimpleIdentifiable
getId
in interface SimpleIdentifiable
public net.runelite.api.NPCComposition getNpcDefinitions()
public net.runelite.api.NPC getNpc()
public net.runelite.api.Actor getActor()
getActor
in interface SimpleActor
public net.runelite.api.coords.WorldPoint getLocation()
SimpleLocatable
getLocation
in interface SimpleLocatable
public boolean isDead()
public boolean inCombat()
public net.runelite.api.Actor getInteracting()
getInteracting
in interface SimpleActor
public int getAnimation()
getAnimation
in interface SimpleActor
public boolean isAnimating()
isAnimating
in interface SimpleActor
public java.lang.String[] getActions()
SimpleActionable
getActions
in interface SimpleActionable
public net.runelite.api.HeadIcon getOverhead()
@Deprecated public int getHealth()
public int getHealthRatio()
public boolean click(java.lang.String action)
Clickable
public boolean click(java.lang.String action, java.lang.String option)
public boolean visibleOnScreen()
visibleOnScreen
in class Clickable