public static enum PacketPlayInEntityAction.ActionType extends Enum<PacketPlayInEntityAction.ActionType>
Enum Constant and Description |
---|
CROUCH |
LEAVE_BED |
ON_HORSE |
OPEN_INVENTORY |
START_SPRINTING |
STOP_SPRINTING |
UN_CROUCH |
Modifier and Type | Field and Description |
---|---|
protected int |
id
Id used to identify the action type
|
Modifier and Type | Method and Description |
---|---|
static PacketPlayInEntityAction.ActionType |
action(int id) |
int |
getId() |
static PacketPlayInEntityAction.ActionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PacketPlayInEntityAction.ActionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketPlayInEntityAction.ActionType CROUCH
public static final PacketPlayInEntityAction.ActionType UN_CROUCH
public static final PacketPlayInEntityAction.ActionType LEAVE_BED
public static final PacketPlayInEntityAction.ActionType START_SPRINTING
public static final PacketPlayInEntityAction.ActionType STOP_SPRINTING
public static final PacketPlayInEntityAction.ActionType ON_HORSE
public static final PacketPlayInEntityAction.ActionType OPEN_INVENTORY
protected final int id
public static PacketPlayInEntityAction.ActionType[] values()
for (PacketPlayInEntityAction.ActionType c : PacketPlayInEntityAction.ActionType.values()) System.out.println(c);
public static PacketPlayInEntityAction.ActionType 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 PacketPlayInEntityAction.ActionType action(int id)
public int getId()
Copyright © 2016. All rights reserved.