Class Animation


  • public class Animation
    extends java.lang.Object
    Manages animations received from the server. Animations are uniquely identified by an animation id. Each animation consists of a list of faces.
    • Constructor Summary

      Constructors 
      Constructor Description
      Animation​(int animationId, int flags, int @NotNull [] faces)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAnimationId()
      Returns the animation ID.
      int getFace​(int index)
      Returns one face of this animation.
      int getFaces()
      Returns the number of faces of this animation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Animation

        public Animation​(int animationId,
                         int flags,
                         int @NotNull [] faces)
        Creates a new instance.
        Parameters:
        animationId - the animation ID
        flags - flags for the animation; currently unused
        faces - the faces list of the animation
    • Method Detail

      • getAnimationId

        public int getAnimationId()
        Returns the animation ID.
        Returns:
        the animation ID
      • getFaces

        public int getFaces()
        Returns the number of faces of this animation.
        Returns:
        the number of faces
      • getFace

        public int getFace​(int index)
        Returns one face of this animation.
        Parameters:
        index - the face index
        Returns:
        the face