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