Interface Animable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
getAnimation()
Gets the animation id.int
getIdleAnimation()
Gets the idle animation id.default boolean
isAnimating()
Determines if this entity is animating based ongetAnimation()
.
-
-
-
Method Detail
-
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
-
-