public class Animation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
animationId
The animation ID.
|
private int[] |
faces
The faces list of the animation.
|
private int |
flags
Flags for the animation; currently unused by the server.
|
Constructor and Description |
---|
Animation(int animationId,
int flags,
int[] faces)
Creates a new instance.
|
Modifier and Type | Method and 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.
|
private final int animationId
@NotNull private final int[] faces
private final int flags
public Animation(int animationId, int flags, @NotNull int[] faces)
animationId
- the animation IDflags
- flags for the animation; currently unusedfaces
- the faces list of the animationpublic int getAnimationId()
public int getFace(int index)
index
- the face indexpublic int getFaces()