public enum ServerboundPacketsc0_19a extends java.lang.Enum<ServerboundPacketsc0_19a> implements com.viaversion.viaversion.api.protocol.packet.ServerboundPacketType, PreNettyPacketType
| Enum Constant and Description |
|---|
CHAT_MESSAGE |
LOGIN |
PLAYER_BLOCK_PLACEMENT |
PLAYER_POSITION_AND_ROTATION |
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
java.lang.String |
getName() |
static ServerboundPacketsc0_19a |
getPacket(int id) |
java.util.function.BiConsumer<com.viaversion.viaversion.api.connection.UserConnection,io.netty.buffer.ByteBuf> |
getPacketReader() |
static ServerboundPacketsc0_19a |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServerboundPacketsc0_19a[] |
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, valueOfpublic static final ServerboundPacketsc0_19a LOGIN
public static final ServerboundPacketsc0_19a PLAYER_BLOCK_PLACEMENT
public static final ServerboundPacketsc0_19a PLAYER_POSITION_AND_ROTATION
public static final ServerboundPacketsc0_19a CHAT_MESSAGE
public static ServerboundPacketsc0_19a[] values()
for (ServerboundPacketsc0_19a c : ServerboundPacketsc0_19a.values()) System.out.println(c);
public static ServerboundPacketsc0_19a 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 ServerboundPacketsc0_19a getPacket(int id)
public int getId()
getId in interface com.viaversion.viaversion.api.protocol.packet.PacketTypepublic java.lang.String getName()
getName in interface com.viaversion.viaversion.api.protocol.packet.PacketTypepublic java.util.function.BiConsumer<com.viaversion.viaversion.api.connection.UserConnection,io.netty.buffer.ByteBuf> getPacketReader()
getPacketReader in interface PreNettyPacketType