Class NPC

    • Constructor Detail

      • NPC

        public NPC​(java.lang.Object reference)
        Note: This shouldn't be used by API users, it's an internal constructor.
    • Method Detail

      • getComposite

        public org.dreambot.internal.cache.wrappers.def.NPCDefinition getComposite()
      • getActions

        public java.lang.String[] getActions()
        Specified by:
        getActions in class Entity
      • 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.
        the ID number as integer.
      • getLevel

        public int getLevel()
        Description copied from class: Character
        Gets the Character's combat level.
        Specified by:
        getLevel in class Character
        the combat level of this Character.
      • getName

        public java.lang.String getName()
        Description copied from class: Entity
        Gets the name of the entity
        Specified by:
        getName in interface Identifiable
        Specified by:
        getName in class Entity
        name of entity
      • getIndex

        public int getIndex()
        Description copied from class: Character
        Gets the index of this Character.
        Specified by:
        getIndex in class Character
        this index location.
      • 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
        Specified by:
        hasAction in class Entity
        actions - actions to check
        true if all actions are in the list of menu actions
      • getHeadIcon

        public int getHeadIcon()
      • getHeadIconArchiveIds

        public int[] getHeadIconArchiveIds()
      • getHeadIconSpriteIndex

        public short[] getHeadIconSpriteIndex()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class Character
      • getRetextureToReplace

        public short[] getRetextureToReplace()
      • getRetextureToFind

        public short[] getRetextureToFind()
      • isMinimapDot

        public boolean isMinimapDot()
      • 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()
      • isFollower

        public boolean isFollower()
      • isLowPriorityFollowerOps

        public boolean isLowPriorityFollowerOps()
      • getCategory

        public int getCategory()
      • 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)
        True Tile of the NPC, the tile where loot would drop from the npc
      • getOverheadIcons

        public int[] getOverheadIcons()
      • getOverheadIconSpriteIndex

        public short[] getOverheadIconSpriteIndex()
      • getCurrentOverheadIcons

        public int[] getCurrentOverheadIcons()
        Returns the overhead icon archive IDs for the currently available overhead icon
        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
        short[] of sprite indices's, including -1's, if icon available. Else null if no icon available.