Annotation 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 ElementsModifier and TypeRequired ElementDescriptionString[]Specifies the prefixes for the sprite animations. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Specifies the animations to be used when the entity dies.
-
Element Details
-
spritePrefix
String[] spritePrefixSpecifies the prefixes for the sprite animations.- Returns:
- an array of sprite prefixes
-
deathAnimations
String[] deathAnimationsSpecifies the animations to be used when the entity dies. Defaults to an empty array.- Returns:
- an array of death animation names
- Default:
{}
-