public static enum NPacketPlayInEntityAction.EnumPlayerAction extends Enum<NPacketPlayInEntityAction.EnumPlayerAction>
Enum Constant and Description |
---|
LEAVE_BED |
OPEN_INVENTORY |
START_FALL_FLYING |
START_RIDING_JUMP |
START_SNEAKING |
START_SPRINTING |
STOP_RIDING_JUMP |
STOP_SLEEPING |
STOP_SNEAKING |
STOP_SPRINTING |
Modifier and Type | Method and Description |
---|---|
static NPacketPlayInEntityAction.EnumPlayerAction |
getAction(String key)
Get the action according to the given key
|
List<String> |
getAlias() |
static NPacketPlayInEntityAction.EnumPlayerAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NPacketPlayInEntityAction.EnumPlayerAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NPacketPlayInEntityAction.EnumPlayerAction START_SNEAKING
public static final NPacketPlayInEntityAction.EnumPlayerAction STOP_SNEAKING
public static final NPacketPlayInEntityAction.EnumPlayerAction STOP_SLEEPING
public static final NPacketPlayInEntityAction.EnumPlayerAction START_SPRINTING
public static final NPacketPlayInEntityAction.EnumPlayerAction STOP_SPRINTING
public static final NPacketPlayInEntityAction.EnumPlayerAction START_RIDING_JUMP
public static final NPacketPlayInEntityAction.EnumPlayerAction STOP_RIDING_JUMP
public static final NPacketPlayInEntityAction.EnumPlayerAction OPEN_INVENTORY
public static final NPacketPlayInEntityAction.EnumPlayerAction START_FALL_FLYING
public static final NPacketPlayInEntityAction.EnumPlayerAction LEAVE_BED
public static NPacketPlayInEntityAction.EnumPlayerAction[] values()
for (NPacketPlayInEntityAction.EnumPlayerAction c : NPacketPlayInEntityAction.EnumPlayerAction.values()) System.out.println(c);
public static NPacketPlayInEntityAction.EnumPlayerAction 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 static NPacketPlayInEntityAction.EnumPlayerAction getAction(String key)
key
- the name of the action