public enum PlayerAnimation extends Enum<PlayerAnimation>
Enum Constant and Description |
---|
ARM_SWING |
ARM_SWING_OFFHAND |
CRIT |
EAT_FOOD |
HURT |
MAGIC_CRIT |
SIT |
SLEEP |
SNEAK |
START_ELYTRA |
START_USE_MAINHAND_ITEM |
START_USE_OFFHAND_ITEM |
STOP_SITTING |
STOP_SLEEPING |
STOP_SNEAKING |
STOP_USE_ITEM |
Modifier and Type | Method and Description |
---|---|
void |
play(Player player) |
void |
play(Player player,
int radius) |
static PlayerAnimation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerAnimation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerAnimation ARM_SWING
public static final PlayerAnimation ARM_SWING_OFFHAND
public static final PlayerAnimation CRIT
public static final PlayerAnimation EAT_FOOD
public static final PlayerAnimation HURT
public static final PlayerAnimation MAGIC_CRIT
public static final PlayerAnimation SIT
public static final PlayerAnimation SLEEP
public static final PlayerAnimation SNEAK
public static final PlayerAnimation START_ELYTRA
public static final PlayerAnimation START_USE_MAINHAND_ITEM
public static final PlayerAnimation START_USE_OFFHAND_ITEM
public static final PlayerAnimation STOP_SITTING
public static final PlayerAnimation STOP_SLEEPING
public static final PlayerAnimation STOP_SNEAKING
public static final PlayerAnimation STOP_USE_ITEM
public static PlayerAnimation[] values()
for (PlayerAnimation c : PlayerAnimation.values()) System.out.println(c);
public static PlayerAnimation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void play(Player player)
public void play(Player player, int radius)
Copyright © 2019. All rights reserved.