public static enum ClientCommandC2SPacket.Mode extends Enum<ClientCommandC2SPacket.Mode>
Enum Constant and Description |
---|
OPEN_INVENTORY |
PRESS_SHIFT_KEY |
RELEASE_SHIFT_KEY |
START_FALL_FLYING |
START_RIDING_JUMP |
START_SPRINTING |
STOP_RIDING_JUMP |
STOP_SLEEPING |
STOP_SPRINTING |
Modifier and Type | Method and Description |
---|---|
static ClientCommandC2SPacket.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientCommandC2SPacket.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientCommandC2SPacket.Mode PRESS_SHIFT_KEY
public static final ClientCommandC2SPacket.Mode RELEASE_SHIFT_KEY
public static final ClientCommandC2SPacket.Mode STOP_SLEEPING
public static final ClientCommandC2SPacket.Mode START_SPRINTING
public static final ClientCommandC2SPacket.Mode STOP_SPRINTING
public static final ClientCommandC2SPacket.Mode START_RIDING_JUMP
public static final ClientCommandC2SPacket.Mode STOP_RIDING_JUMP
public static final ClientCommandC2SPacket.Mode OPEN_INVENTORY
public static final ClientCommandC2SPacket.Mode START_FALL_FLYING
public static ClientCommandC2SPacket.Mode[] values()
for (ClientCommandC2SPacket.Mode c : ClientCommandC2SPacket.Mode.values()) System.out.println(c);
public static ClientCommandC2SPacket.Mode 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 null