public enum ModPacketTypes extends java.lang.Enum<ModPacketTypes>
Enum Constant and Description |
---|
ACCURATE_PLACEMENT |
BAG_GUI |
BAG_GUI_STACK |
CHISEL |
CLEAR_BAG |
OPEN_BAG_GUI |
ROTATE_VOXEL_BLOB |
SET_CHISEL_MODE |
SET_COLOR |
SUPRESS_INTERACTION |
UNDO |
Modifier and Type | Method and Description |
---|---|
static ModPacket |
constructByID(int id) |
static int |
getID(java.lang.Class<? extends ModPacket> clz) |
static void |
init() |
static ModPacketTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModPacketTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModPacketTypes CHISEL
public static final ModPacketTypes OPEN_BAG_GUI
public static final ModPacketTypes SET_CHISEL_MODE
public static final ModPacketTypes ROTATE_VOXEL_BLOB
public static final ModPacketTypes BAG_GUI
public static final ModPacketTypes BAG_GUI_STACK
public static final ModPacketTypes UNDO
public static final ModPacketTypes CLEAR_BAG
public static final ModPacketTypes SUPRESS_INTERACTION
public static final ModPacketTypes SET_COLOR
public static final ModPacketTypes ACCURATE_PLACEMENT
public static ModPacketTypes[] values()
for (ModPacketTypes c : ModPacketTypes.values()) System.out.println(c);
public static ModPacketTypes 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 static void init()
public static int getID(java.lang.Class<? extends ModPacket> clz)
public static ModPacket constructByID(int id) throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException