Enum Class SimpleProtocol.DummyPacketTypes
java.lang.Object
java.lang.Enum<SimpleProtocol.DummyPacketTypes>
com.viaversion.viaversion.api.protocol.SimpleProtocol.DummyPacketTypes
- All Implemented Interfaces:
ClientboundPacketType,PacketType,ServerboundPacketType,Serializable,Comparable<SimpleProtocol.DummyPacketTypes>,Constable
- Enclosing interface:
- SimpleProtocol
public static enum SimpleProtocol.DummyPacketTypes
extends Enum<SimpleProtocol.DummyPacketTypes>
implements ClientboundPacketType, ServerboundPacketType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionClientbound or serverbound direction.intgetId()Returns the packet id for the implemented protocol.getName()Returns the name of the packet, to be consistent over multiple versions.Returns the enum constant of this class with the specified name.static SimpleProtocol.DummyPacketTypes[]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
state
-
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
-
getId
public int getId()Description copied from interface:PacketTypeReturns the packet id for the implemented protocol.- Specified by:
getIdin interfacePacketType- Returns:
- packet id for the implemented protocol
-
getName
Description copied from interface:PacketTypeReturns the name of the packet, to be consistent over multiple versions.- Specified by:
getNamein interfacePacketType- Returns:
- name of the packet
-
direction
Description copied from interface:PacketTypeClientbound or serverbound direction.- Specified by:
directionin interfaceClientboundPacketType- Specified by:
directionin interfacePacketType- Specified by:
directionin interfaceServerboundPacketType- Returns:
- direction
-