Class NPC
- java.lang.Object
-
- org.dreambot.api.wrappers.interactive.interact.Interactable
-
- org.dreambot.api.wrappers.interactive.Entity
-
- org.dreambot.api.wrappers.interactive.Character
-
- org.dreambot.api.wrappers.interactive.NPC
-
- All Implemented Interfaces:
Identifiable
,Locatable
,Verified
public class NPC extends Character
-
-
Constructor Summary
Constructors Constructor Description NPC(java.lang.Object reference)
Note: This shouldn't be used by API users, it's an internal constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String[]
getActions()
int[]
getAdditionalModels()
Area
getArea()
int
getCategory()
Deprecated.int[]
getChildIDs()
org.dreambot.internal.cache.wrappers.def.NPCDefinition
getComposite()
int[]
getCurrentOverheadIcons()
Returns the overhead icon archive IDs for the currently available overhead iconshort[]
getCurrentOverheadSpriteIndices()
Returns the overhead icon sprite indices for the currently available overhead iconint
getDegreesToTurn()
int
getHeadIcon()
Deprecated.int[]
getHeadIconArchiveIds()
short[]
getHeadIconSpriteIndex()
int
getHeightScale()
int
getID()
Gets ID number of the given object.int
getIdleAnimation()
int
getIndex()
Gets the index of this Character.int
getLevel()
Gets the Character's combat level.int
getLightModifier()
int[]
getModelIDs()
java.lang.String
getName()
Gets the name of the entityint[]
getOverheadIcons()
Deprecated.short[]
getOverheadIconSpriteIndex()
Deprecated.java.util.Map<java.lang.Integer,java.lang.Object>
getParams()
int
getRealID()
short[]
getRecoloredOriginal()
short[]
getRecoloredTarget()
short[]
getRecolorOriginal()
short[]
getRecolorTarget()
short[]
getRetextureToFind()
short[]
getRetextureToReplace()
int
getShadowModifier()
int
getSize()
Tile
getTrueTile()
Gets the tile that loot will drop on, adjusts NPC tile based on NPC size.int
getTurn180Animation()
int
getTurn90CCWAnimation()
int
getTurn90CWAnimation()
int
getVarbitID()
int
getVarpID()
int
getWalkingAnimation()
int
getWidthScale()
boolean
hasAction(java.lang.String... actions)
Checks whether given actions are in the list of menu actions for an entityboolean
hasRenderPriority()
boolean
isClickable()
boolean
isDrawMinimapDot()
boolean
isFollower()
boolean
isLowPriorityFollowerOps()
boolean
isMinimapDot()
Deprecated.boolean
isPet()
Deprecated.seeisFollower()
boolean
isRotationFlag()
void
setIndex(int index)
java.lang.String
toString()
-
Methods inherited from class org.dreambot.api.wrappers.interactive.Character
canAttack, exists, getAnimation, getAnimationDelay, getCharacterInteractingWithMe, getCharactersInteractingWithMe, getCombatTime, getFacingDirection, getGridX, getGridY, getHeadFrame, getHealthPercent, getHitSplatCycles, getHitSplatIds, getHitSplats, getHitSplatSpecials, getHitSplatTypes, getInteractingCharacter, getInteractingIndex, getLocalX, getLocalY, getOrientation, getOverhead, getQueueSize, getQueueX, getQueueY, getRenderableHeight, getServerTile, getSmoothOrientation, getSpotAnimation, getStandAnimation, getTailFrame, getUID, getWalkAnimation, getWalkingQueueSpeed, getX, getY, getZ, isAnimating, isHealthBarVisible, isInCombat, isInteractedWith, isInteracting, isMoving, isStandingStill
-
Methods inherited from class org.dreambot.api.wrappers.interactive.Entity
canReach, distance, distance, distance, equals, getBoundingBox, getCenterPoint, getClickablePoint, getLeftClickAction, getModel, getReference, getSurroundingArea, getTile, getTileReference, hashCode, interact, interact, interact, interact, interact, interactForceLeft, interactForceRight, isOnScreen, walkingDistance
-
Methods inherited from class org.dreambot.api.wrappers.interactive.interact.Interactable
hover, rightClick
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Locatable
canReach, tileDistance
-
-
-
-
Method Detail
-
getComposite
public org.dreambot.internal.cache.wrappers.def.NPCDefinition getComposite()
-
getActions
public java.lang.String[] getActions()
- Specified by:
getActions
in classEntity
-
getRecolorOriginal
public short[] getRecolorOriginal()
-
getRecolorTarget
public short[] getRecolorTarget()
-
isDrawMinimapDot
public boolean isDrawMinimapDot()
-
getID
public int getID()
Description copied from interface:Identifiable
Gets ID number of the given object.- Returns:
- the ID number as integer.
-
getLevel
public int getLevel()
Description copied from class:Character
Gets the Character's combat level.
-
getName
public java.lang.String getName()
Description copied from class:Entity
Gets the name of the entity- Specified by:
getName
in interfaceIdentifiable
- Specified by:
getName
in classEntity
- Returns:
- name of entity
-
getIndex
public int getIndex()
Description copied from class:Character
Gets the index of this Character.
-
setIndex
public void setIndex(int index)
-
getModelIDs
public int[] getModelIDs()
-
getSize
public int getSize()
-
getRealID
public int getRealID()
-
hasAction
public boolean hasAction(java.lang.String... actions)
Description copied from class:Entity
Checks whether given actions are in the list of menu actions for an entity
-
getHeadIcon
@Deprecated public int getHeadIcon()
Deprecated.
-
getHeadIconArchiveIds
public int[] getHeadIconArchiveIds()
-
getHeadIconSpriteIndex
public short[] getHeadIconSpriteIndex()
-
getArea
public Area getArea()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getRetextureToReplace
public short[] getRetextureToReplace()
-
getRetextureToFind
public short[] getRetextureToFind()
-
isMinimapDot
@Deprecated public boolean isMinimapDot()
Deprecated.
-
getRecoloredTarget
public short[] getRecoloredTarget()
-
getVarbitID
public int getVarbitID()
-
getWalkingAnimation
public int getWalkingAnimation()
-
getRecoloredOriginal
public short[] getRecoloredOriginal()
-
getParams
public java.util.Map<java.lang.Integer,java.lang.Object> getParams()
-
isPet
@Deprecated public boolean isPet()
Deprecated.seeisFollower()
-
isFollower
public boolean isFollower()
-
isLowPriorityFollowerOps
public boolean isLowPriorityFollowerOps()
-
getCategory
@Deprecated public int getCategory()
Deprecated.
-
isRotationFlag
public boolean isRotationFlag()
-
getAdditionalModels
public int[] getAdditionalModels()
-
getChildIDs
public int[] getChildIDs()
-
getDegreesToTurn
public int getDegreesToTurn()
-
getIdleAnimation
public int getIdleAnimation()
-
getLightModifier
public int getLightModifier()
-
getWidthScale
public int getWidthScale()
-
getHeightScale
public int getHeightScale()
-
getVarpID
public int getVarpID()
-
getShadowModifier
public int getShadowModifier()
-
getTurn180Animation
public int getTurn180Animation()
-
getTurn90CCWAnimation
public int getTurn90CCWAnimation()
-
getTurn90CWAnimation
public int getTurn90CWAnimation()
-
isClickable
public boolean isClickable()
-
hasRenderPriority
public boolean hasRenderPriority()
-
getTrueTile
public Tile getTrueTile()
Gets the tile that loot will drop on, adjusts NPC tile based on NPC size. Does not work for NPC's that don't drop loot on their own tiles (like Zulrah)- Returns:
- True Tile of the NPC, the tile where loot would drop from the npc
-
getOverheadIcons
@Deprecated public int[] getOverheadIcons()
Deprecated.
-
getOverheadIconSpriteIndex
@Deprecated public short[] getOverheadIconSpriteIndex()
Deprecated.
-
getCurrentOverheadIcons
public int[] getCurrentOverheadIcons()
Returns the overhead icon archive IDs for the currently available overhead icon- Returns:
- int[] of archive id's, including -1's, if icon available. Else null if no icon available.
-
getCurrentOverheadSpriteIndices
public short[] getCurrentOverheadSpriteIndices()
Returns the overhead icon sprite indices for the currently available overhead icon- Returns:
- short[] of sprite indices's, including -1's, if icon available. Else null if no icon available.
-
-