Interface NPCComposition

    • Method Detail

      • getName

        String getName()
        Gets the name of the NPC.
      • getModels

        int[] getModels()
        Gets the model IDs that compose this NPC.
      • isInteractible

        boolean isInteractible()
        NPC can be interacting with via menu options
        Returns:
      • isMinimapVisible

        boolean isMinimapVisible()
        Gets whether the NPC is visible on the mini-map.
      • isVisible

        boolean isVisible()
      • getId

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

        int getCombatLevel()
        Returns:
        the combat level, -1 if none
      • getConfigs

        int[] getConfigs()
        Get the NpcIDs of NPCs this can transform into, depending on a Varbits or VarPlayer
      • getSize

        int getSize()
        How many tiles wide this NPC is
      • isFollower

        boolean isFollower()
        If the npc is a follower, such as a pet. Is affected by the "Move follower options lower down" setting.
        Returns:
      • getColorToReplace

        @Nullable
        short[] getColorToReplace()
        Get the colors to be replaced on this npc's model for this npc.
        Returns:
        the colors to be replaced
        See Also:
        JagexColor
      • getColorToReplaceWith

        @Nullable
        short[] getColorToReplaceWith()
        Get the colors applied to this npc's model for this npc.
        Returns:
        the colors to replace with
        See Also:
        JagexColor
      • getWidthScale

        int getWidthScale()
        Horizontal scaling of the npc model (1/128th of a tile).
        Returns:
      • getHeightScale

        int getHeightScale()
        Vertical scaling of the npc model (1/128th of a tile).
        Returns: