Package org.geysermc.floodgate.util
Enum WebsocketEventType
- java.lang.Object
-
- java.lang.Enum<WebsocketEventType>
-
- org.geysermc.floodgate.util.WebsocketEventType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WebsocketEventType>
public enum WebsocketEventType extends java.lang.Enum<WebsocketEventType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDED_TO_QUEUESent every time a skin got added to the upload queueCREATOR_DISCONNECTEDSent once the creator disconnected.LOG_MESSAGESent when the server wants you to know something.NEWS_ADDEDSent every time a news item was addedSKIN_UPLOADEDSent every time a skin got successfully uploadedSUBSCRIBER_COUNTSent every time a subscriber got added or disconnectedSUBSCRIBER_CREATEDSent once we successfully connected to the server
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebsocketEventTypefromId(int id)intid()static WebsocketEventTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WebsocketEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 inADDED_TO_QUEUEandSKIN_UPLOADEDreaches 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 Detail
-
values
public static WebsocketEventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WebsocketEventType c : WebsocketEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebsocketEventType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fromId
public static WebsocketEventType fromId(int id)
-
id
public int id()
-
-