Package pro.gravit.launcher.request
Enum RequestType
- java.lang.Object
-
- java.lang.Enum<RequestType>
-
- pro.gravit.launcher.request.RequestType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RequestType>,pro.gravit.launcher.serialize.stream.EnumSerializer.Itf
public enum RequestType extends java.lang.Enum<RequestType> implements pro.gravit.launcher.serialize.stream.EnumSerializer.Itf
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHBATCH_PROFILE_BY_USERNAMECHANGESERVERCHECK_SERVERCUSTOMEXECCOMMANDJOIN_SERVERLAUNCHERLEGACYLAUNCHERPINGPROFILE_BY_USERNAMEPROFILE_BY_UUIDPROFILESSERVERAUTHSETPROFILEUPDATEUPDATE_LIST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumber()static RequestTyperead(pro.gravit.launcher.serialize.HInput input)static RequestTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RequestType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PING
public static final RequestType PING
-
LEGACYLAUNCHER
public static final RequestType LEGACYLAUNCHER
-
UPDATE
public static final RequestType UPDATE
-
UPDATE_LIST
public static final RequestType UPDATE_LIST
-
AUTH
public static final RequestType AUTH
-
JOIN_SERVER
public static final RequestType JOIN_SERVER
-
CHECK_SERVER
public static final RequestType CHECK_SERVER
-
PROFILE_BY_USERNAME
public static final RequestType PROFILE_BY_USERNAME
-
PROFILE_BY_UUID
public static final RequestType PROFILE_BY_UUID
-
BATCH_PROFILE_BY_USERNAME
public static final RequestType BATCH_PROFILE_BY_USERNAME
-
PROFILES
public static final RequestType PROFILES
-
SERVERAUTH
public static final RequestType SERVERAUTH
-
SETPROFILE
public static final RequestType SETPROFILE
-
LAUNCHER
public static final RequestType LAUNCHER
-
CHANGESERVER
public static final RequestType CHANGESERVER
-
EXECCOMMAND
public static final RequestType EXECCOMMAND
-
CUSTOM
public static final RequestType CUSTOM
-
-
Method Detail
-
values
public static RequestType[] 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 (RequestType c : RequestType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestType 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
-
read
public static RequestType read(pro.gravit.launcher.serialize.HInput input) throws java.io.IOException
- Throws:
java.io.IOException
-
getNumber
public int getNumber()
- Specified by:
getNumberin interfacepro.gravit.launcher.serialize.stream.EnumSerializer.Itf
-
-