Interface IActor

All Superinterfaces:
net.runelite.api.Actor, net.runelite.api.CameraFocusableEntity, Identifiable, Interactable, Locatable, Nameable, net.runelite.api.Node, net.runelite.api.Renderable, RuneLiteWrapper<net.runelite.api.Actor>, SceneEntity
All Known Subinterfaces:
INPC, IPlayer

public interface IActor extends net.runelite.api.Actor, SceneEntity, RuneLiteWrapper<net.runelite.api.Actor>
Represents an actor in the game world (player or NPC).

Actors are entities that can move, animate, and interact with other actors. This interface provides methods to query actor state and initiate interactions.

See Also:
  • Method Details

    • getIndex

      int getIndex()
      Gets the actor's index in the actor array.
      Returns:
      the actor index
    • attack

      void attack()
      Attacks this actor.

      This will attempt to initiate combat with the actor.

    • isAnimating

      boolean isAnimating()
      Checks if the actor is currently animating.

      Animation includes any movement-related animations, combat animations, etc.

      Returns:
      true if animating, false otherwise
    • isIdle

      boolean isIdle()
      Checks if the actor is idle (not animating and not moving).
      Returns:
      true if idle, false otherwise
    • isHealthBarVisible

      boolean isHealthBarVisible()
      Checks if the actor's health bar is currently visible.

      Health bars typically appear when an actor is in combat or recently damaged.

      Returns:
      true if health bar is visible, false otherwise
    • isMoving

      boolean isMoving()
      Checks if the actor is currently moving.
      Returns:
      true if moving, false otherwise
    • getSpotAnimationCount

      int getSpotAnimationCount()
      Gets the number of active spot animations (graphics) on the actor.

      Spot animations include spell effects, special attack graphics, etc.

      Returns:
      the number of active spot animations
    • getTarget

      IActor getTarget()
      Gets the actor's current combat target.
      Returns:
      the target actor, or null if not in combat
    • getInteracting

      IActor getInteracting()
      Gets the actor this actor is currently interacting with.

      This includes combat targets, following, and other interactions.

      Specified by:
      getInteracting in interface net.runelite.api.Actor
      Returns:
      the interacting actor, or null if not interacting