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.
        Returns:
        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
        Returns:
        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
        Returns:
        name of entity
      • getIndex

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

        public int getHeadIcon()
      • toString

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        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()
      • 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)
        Returns:
        True Tile of the NPC, the tile where loot would drop from the npc