Package org.dreambot.api.script.listener
Interface AnimationListener
-
- All Superinterfaces:
java.util.EventListener
public interface AnimationListener extends java.util.EventListenerThis 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 Deprecated Methods Modifier and Type Method Description default voidonNpcAnimation(NPC npc)Event method called with the NPC with a changed animation.default voidonNpcAnimation(NPC npc, int animation, int animationDelay)Deprecated.default voidonNPCSpotAnimation(NPC npc, SpotAnimation animation)default voidonPlayerAnimation(Player player)Event method called with the Player whose animation is changed.default voidonPlayerAnimation(Player player, int animation, int animationDelay)Deprecated.default voidonPlayerSpotAnimation(Player player, SpotAnimation animation)
-
-
-
Method Detail
-
onPlayerAnimation
@Deprecated default void onPlayerAnimation(Player player, int animation, int animationDelay)
Deprecated.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
-
onPlayerAnimation
default void onPlayerAnimation(Player player)
Event method called with the Player whose animation is changed. You can get the new animation withCharacter.getAnimation()- Parameters:
player- Player for animation change
-
onNpcAnimation
@Deprecated default void onNpcAnimation(NPC npc, int animation, int animationDelay)
Deprecated.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
-
onNpcAnimation
default void onNpcAnimation(NPC npc)
Event method called with the NPC with a changed animation. You can get the new animation withCharacter.getAnimation()- Parameters:
npc- Player for animation change
-
onPlayerSpotAnimation
default void onPlayerSpotAnimation(Player player, SpotAnimation animation)
-
onNPCSpotAnimation
default void onNPCSpotAnimation(NPC npc, SpotAnimation animation)
-
-