22 package com.realtime.crossfire.jxclient.animations;
24 import org.jetbrains.annotations.NotNull;
55 public Animation(
final int animationId,
final int flags, @NotNull
final int[] faces) {
56 assert faces.length > 0;
60 this.faces =
new int[faces.length];
61 System.arraycopy(faces, 0, this.faces, 0, faces.length);
final int animationId
The animation ID.
int getFace(final int index)
Returns one face of this animation.
int getFaces()
Returns the number of faces of this animation.
Animation(final int animationId, final int flags, @NotNull final int[] faces)
Creates a new instance.
final int [] faces
The faces list of the animation.
final int flags
Flags for the animation; currently unused by the server.
Manages animations received from the server.
int getAnimationId()
Returns the animation ID.