public static enum PacketEvent.PacketSourceType extends Enum<PacketEvent.PacketSourceType>
Enum Constant and Description |
---|
CUSTOM |
PACKETGATE |
PROTOCOLLIB |
Modifier and Type | Method and Description |
---|---|
static PacketEvent.PacketSourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PacketEvent.PacketSourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketEvent.PacketSourceType PROTOCOLLIB
public static final PacketEvent.PacketSourceType PACKETGATE
public static final PacketEvent.PacketSourceType CUSTOM
public static PacketEvent.PacketSourceType[] values()
for (PacketEvent.PacketSourceType c : PacketEvent.PacketSourceType.values()) System.out.println(c);
public static PacketEvent.PacketSourceType 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