Interface IAutoAnimation


public interface IAutoAnimation
Interface to automatically update the animation. Only works with the EntityAnimationWrapper!
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    getCurrentAnimation(byte layerIndex)
    Returns the currently playing animation ID on the given layer index.
  • Method Details

    • getCurrentAnimation

      short getCurrentAnimation(byte layerIndex)
      Returns the currently playing animation ID on the given layer index. If the animation was not registered on that layer all animations on that layer will be stopped. So if you set the animation to -1, the current animation will stop.
      Parameters:
      layerIndex - The layer index
      Returns:
      The currently playing animation ID