public class SimpleNpc extends SimpleActor<simple.bot.internal.INpc> implements SimpleInteractable
ctx| Constructor and Description |
|---|
SimpleNpc(ClientContext ctx,
simple.bot.internal.INpc reflectedObject,
int index) |
SimpleNpc(ClientContext ctx,
simple.bot.internal.INpc reflectedObject,
int index,
NpcDefinition definition) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getActions()
Returns Actions of the object
|
int |
getCombatLevel() |
NpcDefinition |
getDefinitions() |
int |
getHeadIcon() |
int |
getId()
Returns id of the object
|
int |
getIndex() |
WorldPoint |
getLocation()
Position in world of object
|
java.lang.String |
getName()
The name of said object
|
HeadIcon |
getOverheadIcon() |
boolean |
interact(int actionId) |
boolean |
interact(SimpleNpcActions action) |
boolean |
interact(java.lang.String option) |
equals, getAnimation, getCycleStatus, getGraphic, getHealth, getHealthRatio, getHeight, getInteracting, getInteractingIndex, getLocalX, getLocalY, getMaxHealth, getPathX, getPathY, getRemainingPath, getSize, inCombat, isAnimating, isDead, overheadTextgetReflectedObjectgetClass, hashCode, notify, notifyAll, toString, wait, wait, waitdistanceTo, within, withinRangepublic SimpleNpc(ClientContext ctx, simple.bot.internal.INpc reflectedObject, int index)
public SimpleNpc(ClientContext ctx, simple.bot.internal.INpc reflectedObject, int index, NpcDefinition definition)
public java.lang.String[] getActions()
SimpleActionablegetActions in interface SimpleActionablepublic int getId()
SimpleIdentifiablegetId in interface SimpleIdentifiablepublic int getIndex()
public java.lang.String getName()
SimpleNamablegetName in interface SimpleNamablepublic int getCombatLevel()
public WorldPoint getLocation()
SimpleLocatablegetLocation in interface SimpleLocatablepublic NpcDefinition getDefinitions()
public int getHeadIcon()
public HeadIcon getOverheadIcon()
public boolean interact(java.lang.String option)
interact in interface SimpleInteractablepublic boolean interact(SimpleNpcActions action)
public boolean interact(int actionId)