Interface NPC

  • All Superinterfaces:
    Actor, Node, Renderable

    public interface NPC
    extends Actor
    Represents a non-player character in the game.
    • Method Detail

      • getId

        int getId()
        Gets the ID of the NPC.
        Returns:
        the ID of the NPC
        See Also:
        NpcID
      • getName

        String getName()
        Description copied from interface: Actor
        Gets the name of the actor.
        Specified by:
        getName in interface Actor
        Returns:
        the name
      • getCombatLevel

        int getCombatLevel()
        Description copied from interface: Actor
        Gets the combat level of the actor.
        Specified by:
        getCombatLevel in interface Actor
        Returns:
        the combat level
      • getIndex

        int getIndex()
        Gets the index position of this NPC in the clients cached NPC array.
        Returns:
        the NPC index
      • getComposition

        NPCComposition getComposition()
        Gets the composition of this NPC.
        Returns:
        the composition
      • getTransformedComposition

        @Nullable
        NPCComposition getTransformedComposition()
        Get the composition for this NPC and transform it if required
        Returns:
        the transformed NPC
      • getModelOverrides

        @Nullable
        NpcOverrides getModelOverrides()
      • getChatheadOverrides

        @Nullable
        NpcOverrides getChatheadOverrides()
      • getOverheadArchiveIds

        @Nullable
        int[] getOverheadArchiveIds()
        Get the array of overhead icon archive ids. Used in conjunction with getOverheadSpriteIds() to determine which icons are being rendered overhead.
        Returns:
        A sparse array of archive ids. Values of -1 are not used.
        See Also:
        getOverheadSpriteIds()
      • getOverheadSpriteIds

        @Nullable
        short[] getOverheadSpriteIds()
        Get the array of overhead icon sprite indexes. Used in conjunction with getOverheadArchiveIds() to determine which icons are being rendered overhead.
        Returns:
        A sparse array of archive ids. Values of -1 are not used.
        See Also:
        getOverheadArchiveIds()