Package org.dreambot.api.script.listener
Interface AnimationListener
-
- All Superinterfaces:
java.util.EventListener
public interface AnimationListener extends java.util.EventListener
This is an animation listener used by scripts or other classes Events sent by a threaded animation listener, only dispatched while a script is running. Listener is stopped on script stop, and reset on new script start. New Injections required to use
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onNpcAnimation(NPC npc, int animation, int animationDelay)
Event method called with the Player whose animation is changed, the animation it changed to, and the animation delay valuedefault void
onNPCSpotAnimation(NPC npc, SpotAnimation animation)
default void
onPlayerAnimation(Player player, int animation, int animationDelay)
Event method called with the Player whose animation is changed, the animation it changed to, and the animation delay valuedefault void
onPlayerSpotAnimation(Player player, SpotAnimation animation)
-
-
-
Method Detail
-
onPlayerAnimation
default void onPlayerAnimation(Player player, int animation, int animationDelay)
Event method called with the Player whose animation is changed, the animation it changed to, and the animation delay value- Parameters:
player
- Player for animation changeanimation
- animation valueanimationDelay
- animation delay
-
onNpcAnimation
default void onNpcAnimation(NPC npc, int animation, int animationDelay)
Event method called with the Player whose animation is changed, the animation it changed to, and the animation delay value- Parameters:
npc
- Player for animation changeanimation
- animation valueanimationDelay
- animation delay
-
onPlayerSpotAnimation
default void onPlayerSpotAnimation(Player player, SpotAnimation animation)
-
onNPCSpotAnimation
default void onNPCSpotAnimation(NPC npc, SpotAnimation animation)
-
-