Class RSNpc

  • All Implemented Interfaces:
    RSActor

    public class RSNpc
    extends java.lang.Object
    implements RSActor
    • Constructor Detail

      • RSNpc

        public RSNpc​(@NotNull
                     @NotNull net.runelite.api.NPC composition)
    • Method Detail

      • getComposition

        public net.runelite.api.NPCComposition getComposition()
      • doAction

        public boolean doAction​(@Nonnull
                                java.lang.String option)
        Specified by:
        doAction in interface RSActor
      • doAction

        public boolean doAction​(@Nonnull
                                net.runelite.api.MenuAction type,
                                @Nonnull
                                java.lang.String option)
        Specified by:
        doAction in interface RSActor
      • interact

        public boolean interact​(@Nonnull
                                java.lang.String option)
        Specified by:
        interact in interface RSActor
      • interact

        public boolean interact​(@Nullable
                                @Nullable net.runelite.api.MenuAction type,
                                @Nonnull
                                java.lang.String option)
        Specified by:
        interact in interface RSActor
      • isInCombat

        public boolean isInCombat()
      • isFighting

        public boolean isFighting​(@Nonnull
                                  java.lang.String targetName)
      • isInteractingWith

        public boolean isInteractingWith​(@Nonnull
                                         java.lang.String targetName)
        Specified by:
        isInteractingWith in interface RSActor
      • isMoving

        public boolean isMoving()
        Specified by:
        isMoving in interface RSActor
      • getIndex

        public int getIndex()
      • isDead

        public boolean isDead()
        Specified by:
        isDead in interface RSActor
      • getActions

        @Nullable
        public @Nullable java.lang.String[] getActions()
      • getName

        @Nullable
        public @Nullable java.lang.String getName()
        Specified by:
        getName in interface RSActor
      • getId

        public int getId()
      • isFollower

        public boolean isFollower()
      • isInteractible

        public boolean isInteractible()
      • isVisible

        public boolean isVisible()
      • isMinimapVisible

        public boolean isMinimapVisible()
      • getSize

        public int getSize()
      • getWidthScale

        public int getWidthScale()
      • getHeightScale

        public int getHeightScale()
      • getModels

        public int[] getModels()
      • getConfigs

        public int @Nullable [] getConfigs()
      • getColorToReplace

        public short @Nullable [] getColorToReplace()
      • getColorToReplaceWith

        public short @Nullable [] getColorToReplaceWith()