Class Events.AnimationEvent
java.lang.Object
privbot.hooks.Events.AnimationEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.runelite.api.ActorThe actor; valid only during dispatch.final intThe new animation (-1 = none).final booleanWhether this is the local player.final intThe NPC's id, or -1 for the local player or when unreadable.final intThe NPC's index (slot), or -1 for the local player.final intThe previous animation (-1 = none).final intThe game tick it was seen on (-1 when unknown). -
Constructor Summary
ConstructorsConstructorDescriptionAnimationEvent(net.runelite.api.Actor actor, boolean local, int npcIndex, int npcId, int previous, int current, int tick) -
Method Summary
-
Field Details
-
actor
public final net.runelite.api.Actor actorThe actor; valid only during dispatch. Null when the frame did not carry it. -
local
public final boolean localWhether this is the local player. -
npcIndex
public final int npcIndexThe NPC's index (slot), or -1 for the local player. -
npcId
public final int npcIdThe NPC's id, or -1 for the local player or when unreadable. -
previous
public final int previousThe previous animation (-1 = none). -
current
public final int currentThe new animation (-1 = none). -
tick
public final int tickThe 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 nulllocal- whether it is the local playernpcIndex- NPC slot, -1 for the local playernpcId- NPC id, -1 when unknownprevious- previous animationcurrent- new animationtick- game tick
-
-
Method Details
-
toString
-