Enum Class ServerboundPacketsa1_2_2
java.lang.Object
java.lang.Enum<ServerboundPacketsa1_2_2>
net.raphimc.vialegacy.protocol.alpha.a1_2_2toa1_2_3_1_2_3_4.packet.ServerboundPacketsa1_2_2
- All Implemented Interfaces:
com.viaversion.viaversion.api.protocol.packet.PacketType,com.viaversion.viaversion.api.protocol.packet.ServerboundPacketType,Serializable,Comparable<ServerboundPacketsa1_2_2>,Constable,PreNettyPacketType
public enum ServerboundPacketsa1_2_2
extends Enum<ServerboundPacketsa1_2_2>
implements com.viaversion.viaversion.api.protocol.packet.ServerboundPacketType, PreNettyPacketType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetId()getName()static ServerboundPacketsa1_2_2getPacket(int id) BiConsumer<com.viaversion.viaversion.api.connection.UserConnection,io.netty.buffer.ByteBuf> static ServerboundPacketsa1_2_2Returns the enum constant of this class with the specified name.static ServerboundPacketsa1_2_2[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.viaversion.viaversion.api.protocol.packet.PacketType
stateMethods inherited from interface com.viaversion.viaversion.api.protocol.packet.ServerboundPacketType
direction
-
Enum Constant Details
-
KEEP_ALIVE
-
LOGIN
-
HANDSHAKE
-
CHAT
-
PLAYER_INVENTORY
-
INTERACT
-
MOVE_PLAYER_STATUS_ONLY
-
MOVE_PLAYER_POS
-
MOVE_PLAYER_ROT
-
MOVE_PLAYER_POS_ROT
-
PLAYER_ACTION
-
USE_ITEM_ON
-
SET_CARRIED_ITEM
-
SWING
-
SPAWN_ITEM
-
BLOCK_ENTITY_DATA
-
DISCONNECT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getPacket
-
getId
public int getId()- Specified by:
getIdin interfacecom.viaversion.viaversion.api.protocol.packet.PacketType
-
getName
- Specified by:
getNamein interfacecom.viaversion.viaversion.api.protocol.packet.PacketType
-
getPacketReader
public BiConsumer<com.viaversion.viaversion.api.connection.UserConnection,io.netty.buffer.ByteBuf> getPacketReader()- Specified by:
getPacketReaderin interfacePreNettyPacketType
-