Interface Animable

  • All Known Subinterfaces:
    Actor, NPC, Player

    public interface Animable
    An entity that can animate.
    • 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 on getAnimation().
        Returns:
        true if getAnimation() is not -1, false otherwise