Package org.geysermc.floodgate.util
Enum Class WebsocketEventType
- All Implemented Interfaces:
Serializable
,Comparable<WebsocketEventType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSent every time a skin got added to the upload queueSent once the creator disconnected.Sent when the server wants you to know something.Sent every time a news item was addedSent every time a skin got successfully uploadedSent every time a subscriber got added or disconnectedSent once we successfully connected to the server -
Method Summary
Modifier and TypeMethodDescriptionstatic WebsocketEventType
fromId(int id)
int
id()
static WebsocketEventType
Returns the enum constant of this class with the specified name.static WebsocketEventType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUBSCRIBER_CREATED
Sent once we successfully connected to the server -
SUBSCRIBER_COUNT
Sent every time a subscriber got added or disconnected -
CREATOR_DISCONNECTED
Sent once the creator disconnected. After this packet the server will automatically close the connection once the queue size (sent inADDED_TO_QUEUE
andSKIN_UPLOADED
reaches 0. -
ADDED_TO_QUEUE
Sent every time a skin got added to the upload queue -
SKIN_UPLOADED
Sent every time a skin got successfully uploaded -
NEWS_ADDED
Sent every time a news item was added -
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
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
-
fromId
-
id
public int id()
-