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.
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void onAnimation​(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

      • onAnimation

        default void onAnimation​(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