Annotation Interface AnimationInfo


@Target(TYPE) @Retention(RUNTIME) @Inherited public @interface AnimationInfo
The AnimationInfo annotation provides metadata for animation properties of an entity. It can be applied to types (classes or interfaces) and is inherited by subclasses.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies the prefixes for the sprite animations.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies the animations to be used when the entity dies.
  • Element Details

    • spritePrefix

      String[] spritePrefix
      Specifies the prefixes for the sprite animations.
      Returns:
      an array of sprite prefixes
    • deathAnimations

      String[] deathAnimations
      Specifies the animations to be used when the entity dies. Defaults to an empty array.
      Returns:
      an array of death animation names
      Default:
      {}