Class Events.AnimationEvent

java.lang.Object
privbot.hooks.Events.AnimationEvent
Enclosing class:
Events

public static final class Events.AnimationEvent extends Object
An animation change on the local player or an NPC.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.runelite.api.Actor
    The actor; valid only during dispatch.
    final int
    The new animation (-1 = none).
    final boolean
    Whether this is the local player.
    final int
    The NPC's id, or -1 for the local player or when unreadable.
    final int
    The NPC's index (slot), or -1 for the local player.
    final int
    The previous animation (-1 = none).
    final int
    The game tick it was seen on (-1 when unknown).
  • Constructor Summary

    Constructors
    Constructor
    Description
    AnimationEvent(net.runelite.api.Actor actor, boolean local, int npcIndex, int npcId, int previous, int current, int tick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • actor

      public final net.runelite.api.Actor actor
      The actor; valid only during dispatch. Null when the frame did not carry it.
    • local

      public final boolean local
      Whether this is the local player.
    • npcIndex

      public final int npcIndex
      The NPC's index (slot), or -1 for the local player.
    • npcId

      public final int npcId
      The NPC's id, or -1 for the local player or when unreadable.
    • previous

      public final int previous
      The previous animation (-1 = none).
    • current

      public final int current
      The new animation (-1 = none).
    • tick

      public final int tick
      The game tick it was seen on (-1 when unknown).
  • Constructor Details

    • AnimationEvent

      public AnimationEvent(net.runelite.api.Actor actor, boolean local, int npcIndex, int npcId, int previous, int current, int tick)
      Parameters:
      actor - the actor, or null
      local - whether it is the local player
      npcIndex - NPC slot, -1 for the local player
      npcId - NPC id, -1 when unknown
      previous - previous animation
      current - new animation
      tick - game tick
  • Method Details