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, validateInteractableequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclickOnMinimap, distanceTo, within, withinRangepublic java.lang.String getName()
SimpleNamablegetName in interface SimpleNamablepublic java.awt.geom.Rectangle2D getClickBounds()
public int getId()
SimpleIdentifiablegetId in interface SimpleIdentifiablepublic net.runelite.api.NPCComposition getNpcDefinitions()
public net.runelite.api.NPC getNpc()
public net.runelite.api.Actor getActor()
getActor in interface SimpleActorpublic net.runelite.api.coords.WorldPoint getLocation()
SimpleLocatablegetLocation in interface SimpleLocatablepublic boolean isDead()
public boolean inCombat()
public net.runelite.api.Actor getInteracting()
getInteracting in interface SimpleActorpublic int getAnimation()
getAnimation in interface SimpleActorpublic boolean isAnimating()
isAnimating in interface SimpleActorpublic java.lang.String[] getActions()
SimpleActionablegetActions in interface SimpleActionablepublic net.runelite.api.HeadIcon getOverhead()
@Deprecated public int getHealth()
public int getHealthRatio()
public boolean click(java.lang.String action)
Clickablepublic boolean click(java.lang.String action,
java.lang.String option)
public boolean visibleOnScreen()
visibleOnScreen in class Clickable