public enum AnimationHandler extends java.lang.Enum<AnimationHandler>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T extends net.minecraft.entity.Entity & IAnimatedEntity> |
sendAnimationMessage(T entity,
Animation animation)
Sends an animation packet to all clients, notifying them of a changed animation
|
<T extends net.minecraft.entity.Entity & IAnimatedEntity> |
updateAnimations(T entity)
Updates all animations for a given entity
|
static AnimationHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnimationHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnimationHandler INSTANCE
public static AnimationHandler[] values()
for (AnimationHandler c : AnimationHandler.values()) System.out.println(c);
public static AnimationHandler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <T extends net.minecraft.entity.Entity & IAnimatedEntity> void sendAnimationMessage(T entity, Animation animation)
T - the entity typeentity - the entity with an animation to be updatedanimation - the animation to be updatedpublic <T extends net.minecraft.entity.Entity & IAnimatedEntity> void updateAnimations(T entity)
T - the entity typeentity - the entity with an animation to be updated