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
        See Also:
        Client.getCachedNPCs()
      • 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