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 boolean
equals(java.lang.Object obj)
java.lang.String[]
getActions()
int[]
getAdditionalModels()
int
getCategory()
Deprecated.int[]
getChildIDs()
org.dreambot.internal.cache.wrappers.def.NPCDefinition
getComposite()
int
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 entityjava.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 entityint
hashCode()
boolean
hasRenderPriority()
boolean
isClickable()
boolean
isDrawMinimapDot()
boolean
isMinimapDot()
Deprecated.boolean
isPet()
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, getCombatTime, getFacingDirection, getGridX, getGridY, getHeadFrame, getHealthPercent, getHitSplatCycles, getHitSplatIds, getHitSplats, getHitSplatSpecials, getHitSplatTypes, getInteractingCharacter, getInteractingIndex, getLocalX, getLocalY, getOrientation, getOverhead, getQueueSize, getQueueX, getQueueY, getRenderableHeight, 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, getBoundingBox, getCenterPoint, getClickablePoint, getLeftClickAction, getModel, getReference, getSurroundingArea, getTile, getTileReference, interact, interact, interact, isOnScreen, walkingDistance
-
Methods inherited from class org.dreambot.api.wrappers.interactive.interact.Interactable
interact, interact, interactForceLeft, interactForceRight
-
-
-
-
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()
-
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
public boolean isPet()
-
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
-
-