Package com.modrinth.minotaur.request
Enum Class Environment
- All Implemented Interfaces:
Serializable,Comparable<Environment>,Constable
The enum representing the environments a version can be used in.
See also: The environments release blog
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMust be installed on both the client and server.All functionality is performed exclusively on the client side.Must be on the server, but can be on the client as well for enhanced functionalityCan be installed on just the client or just the server, and either one would enable full functionality.Can be installed on just the client or just the server to function, but functionality is enhanced when it is on both.Only runs on a dedicated server, and not in Singleplayer.All functionality is performed exclusively on the server side.Must be on the server, but can be on the client as well for enhanced functionalityOnly works in Singleplayer, does not function in a Multiplayer environment. -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentReturns the enum constant of this class with the specified name.static Environment[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT_ONLY
All functionality is performed exclusively on the client side. Should be compatible with vanilla servers. -
SERVER_ONLY
All functionality is performed exclusively on the server side. Should be compatible with vanilla clients if only installed on the server. Also works in Singleplayer. -
DEDICATED_SERVER_ONLY
Only runs on a dedicated server, and not in Singleplayer. -
CLIENT_AND_SERVER
Must be installed on both the client and server. -
SERVER_ONLY_CLIENT_OPTIONAL
@SerializedName("server_only_client_optional") public static final Environment SERVER_ONLY_CLIENT_OPTIONALMust be on the server, but can be on the client as well for enhanced functionality -
CLIENT_ONLY_SERVER_OPTIONAL
@SerializedName("client_only_server_optional") public static final Environment CLIENT_ONLY_SERVER_OPTIONALMust be on the server, but can be on the client as well for enhanced functionality -
CLIENT_OR_SERVER_PREFERS_BOTH
@SerializedName("client_or_server_prefers_both") public static final Environment CLIENT_OR_SERVER_PREFERS_BOTHCan be installed on just the client or just the server to function, but functionality is enhanced when it is on both. -
CLIENT_OR_SERVER
Can be installed on just the client or just the server, and either one would enable full functionality. There would be no reason to install it on both. -
SINGLEPLAYER_ONLY
Only works in Singleplayer, does not function in a Multiplayer environment.
-
-
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
-