Interface Animable

All Known Subinterfaces:
Actor, NPC, Player

public interface Animable
An entity that can animate.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the animation id.
    int
    Gets the idle animation id.
    default boolean
    Determines if this entity is animating based on getAnimation().
  • 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 on getAnimation().
      Returns:
      true if getAnimation() is not -1, false otherwise