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 value
      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
    • 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 change
        animation - animation value
        animationDelay - 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 change
        animation - animation value
        animationDelay - animation delay