Contents
Class Entity.DefaultAnimations
java.lang.Object
com.hypixel.hytale.server.core.entity.Entity.DefaultAnimations
- Enclosing class:
Entity
A class that contains the default animation IDs for entities.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getDeathAnimationIds(MovementStates movementStates, DamageCause damageCause) Called to get the death animation IDs for the given movement states and damage cause.static String[]getHurtAnimationIds(MovementStates movementStates, DamageCause damageCause) Called to get the hurt animation IDs for the given movement states and damage cause.
-
Field Details
-
DEATH
-
HURT
-
DESPAWN
-
SWIM_SUFFIX
-
FLY_SUFFIX
-
-
Constructor Details
-
DefaultAnimations
public DefaultAnimations()
-
-
Method Details
-
getHurtAnimationIds
@Nonnull public static String[] getHurtAnimationIds(@Nonnull MovementStates movementStates, @Nonnull DamageCause damageCause) Called to get the hurt animation IDs for the given movement states and damage cause.- Parameters:
movementStates- The movement states of the entity.damageCause- The damage cause.- Returns:
- the hurt animation IDs.
-
getDeathAnimationIds
@Nonnull public static String[] getDeathAnimationIds(@Nonnull MovementStates movementStates, @Nonnull DamageCause damageCause) Called to get the death animation IDs for the given movement states and damage cause.- Parameters:
movementStates- The movement states of the entity.damageCause- The damage cause.- Returns:
- the death animation IDs.
-