Class Entity.DefaultAnimations

java.lang.Object
com.hypixel.hytale.server.core.entity.Entity.DefaultAnimations
Enclosing class:
Entity

public static class Entity.DefaultAnimations extends Object
A class that contains the default animation IDs for entities.
  • Field Details

  • 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.