Enum DownloadClassifier
- java.lang.Object
-
- java.lang.Enum<DownloadClassifier>
-
- org.spongepowered.gradle.vanilla.internal.model.DownloadClassifier
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DownloadClassifier>
public enum DownloadClassifier extends java.lang.Enum<DownloadClassifier>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENTCLIENT_MAPPINGSSERVERSERVER_MAPPINGSWINDOWS_SERVERThe server distributed as anexefor Windows users.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DownloadClassifiervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DownloadClassifier[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT
@SerializedName("client") public static final DownloadClassifier CLIENT
-
CLIENT_MAPPINGS
@SerializedName("client_mappings") public static final DownloadClassifier CLIENT_MAPPINGS
-
SERVER
@SerializedName("server") public static final DownloadClassifier SERVER
-
SERVER_MAPPINGS
@SerializedName("server_mappings") public static final DownloadClassifier SERVER_MAPPINGS
-
WINDOWS_SERVER
@SerializedName("windows_server") public static final DownloadClassifier WINDOWS_SERVERThe server distributed as anexefor Windows users.This type of download has been discontinued since
16w05a(a snapshot for 1.9).
-
-
Method Detail
-
values
public static DownloadClassifier[] 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 (DownloadClassifier c : DownloadClassifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DownloadClassifier 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
-
-