public static enum SimpleProtocol.DummyPacketTypes extends java.lang.Enum<SimpleProtocol.DummyPacketTypes> implements ClientboundPacketType, ServerboundPacketType
Modifier and Type | Method and Description |
---|---|
Direction |
direction()
Clientbound or serverbound direction.
|
int |
getId()
Returns the packet id for the implemented protocol.
|
java.lang.String |
getName()
Returns the name of the packet, to be consistent over multiple versions.
|
static SimpleProtocol.DummyPacketTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SimpleProtocol.DummyPacketTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
state
public static SimpleProtocol.DummyPacketTypes[] values()
for (SimpleProtocol.DummyPacketTypes c : SimpleProtocol.DummyPacketTypes.values()) System.out.println(c);
public static SimpleProtocol.DummyPacketTypes 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 int getId()
PacketType
getId
in interface PacketType
public java.lang.String getName()
PacketType
getName
in interface PacketType
public Direction direction()
PacketType
direction
in interface ClientboundPacketType
direction
in interface PacketType
direction
in interface ServerboundPacketType