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, overheadText
getReflectedObject
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distanceTo, within, withinRange
public 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()
SimpleActionable
getActions
in interface SimpleActionable
public int getId()
SimpleIdentifiable
getId
in interface SimpleIdentifiable
public int getIndex()
public java.lang.String getName()
SimpleNamable
getName
in interface SimpleNamable
public int getCombatLevel()
public WorldPoint getLocation()
SimpleLocatable
getLocation
in interface SimpleLocatable
public NpcDefinition getDefinitions()
public int getHeadIcon()
public HeadIcon getOverheadIcon()
public boolean interact(java.lang.String option)
interact
in interface SimpleInteractable
public boolean interact(SimpleNpcActions action)
public boolean interact(int actionId)