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
  • Method Details

    • values

      public static SimpleProtocol.DummyPacketTypes[] 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

      public static SimpleProtocol.DummyPacketTypes valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      Description copied from interface: PacketType
      Returns the packet id for the implemented protocol.
      Specified by:
      getId in interface PacketType
      Returns:
      packet id for the implemented protocol
    • getName

      public String getName()
      Description copied from interface: PacketType
      Returns the name of the packet, to be consistent over multiple versions.
      Specified by:
      getName in interface PacketType
      Returns:
      name of the packet
    • direction

      public Direction direction()
      Description copied from interface: PacketType
      Clientbound or serverbound direction.
      Specified by:
      direction in interface ClientboundPacketType
      Specified by:
      direction in interface PacketType
      Specified by:
      direction in interface ServerboundPacketType
      Returns:
      direction