Interface Animable
public interface Animable
An entity that can animate.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the animation id.intGets the idle animation id.default booleanDetermines if this entity is animating based ongetAnimation().
-
Method Details
-
getAnimation
int getAnimation()Gets the animation id.- Returns:
- -1 when we are not animating
-
getIdleAnimation
int getIdleAnimation()Gets the idle animation id.- Returns:
- int
-
isAnimating
default boolean isAnimating()Determines if this entity is animating based ongetAnimation().- Returns:
- true if
getAnimation()is not -1, false otherwise
-