Enum Class WebsocketEventType

java.lang.Object
java.lang.Enum<WebsocketEventType>
org.geysermc.floodgate.util.WebsocketEventType
All Implemented Interfaces:
Serializable, Comparable<WebsocketEventType>, Constable

public enum WebsocketEventType extends Enum<WebsocketEventType>
  • Enum Constant Details

    • SUBSCRIBER_CREATED

      public static final WebsocketEventType SUBSCRIBER_CREATED
      Sent once we successfully connected to the server
    • SUBSCRIBER_COUNT

      public static final WebsocketEventType SUBSCRIBER_COUNT
      Sent every time a subscriber got added or disconnected
    • CREATOR_DISCONNECTED

      public static final WebsocketEventType CREATOR_DISCONNECTED
      Sent once the creator disconnected. After this packet the server will automatically close the connection once the queue size (sent in ADDED_TO_QUEUE and SKIN_UPLOADED reaches 0.
    • ADDED_TO_QUEUE

      public static final WebsocketEventType ADDED_TO_QUEUE
      Sent every time a skin got added to the upload queue
    • SKIN_UPLOADED

      public static final WebsocketEventType SKIN_UPLOADED
      Sent every time a skin got successfully uploaded
    • NEWS_ADDED

      public static final WebsocketEventType NEWS_ADDED
      Sent every time a news item was added
    • LOG_MESSAGE

      public static final WebsocketEventType LOG_MESSAGE
      Sent when the server wants you to know something. Currently used for violations that aren't bad enough to close the connection
  • Method Details

    • values

      public static WebsocketEventType[] 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 WebsocketEventType 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
    • fromId

      public static WebsocketEventType fromId(int id)
    • id

      public int id()