public class Animation
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Animation(int duration) |
| Modifier and Type | Method and Description |
|---|---|
static Animation |
create(int duration) |
static Animation |
create(int id,
int duration)
Deprecated.
use
create(int) instead. |
boolean |
doesLoop()
Returns whether this animation is supposed to loop
|
int |
getDuration() |
int |
getID()
Deprecated.
IDs aren't used anymore since 1.1.0.
|
Animation |
setLooping(boolean loops)
Sets the 'looping' parameter of this animation.
|
@Deprecated public static Animation create(int id, int duration)
create(int) instead.id - the animation idduration - the animation durationpublic static Animation create(int duration)
duration - the animation duration@Deprecated public int getID()
public int getDuration()
public Animation setLooping(boolean loops)
AnimationHandler.updateAnimations(Entity)loops - true if the animation should loop, false if notpublic boolean doesLoop()