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