Enum Class Environment

java.lang.Object
java.lang.Enum<Environment>
com.modrinth.minotaur.request.Environment
All Implemented Interfaces:
Serializable, Comparable<Environment>, Constable

public enum Environment extends Enum<Environment>
The enum representing the environments a version can be used in. See also: The environments release blog
  • Enum Constant Details

    • CLIENT_ONLY

      @SerializedName("client_only") public static final Environment CLIENT_ONLY
      All functionality is performed exclusively on the client side. Should be compatible with vanilla servers.
    • SERVER_ONLY

      @SerializedName("server_only") public static final Environment 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

      @SerializedName("dedicated_server_only") public static final Environment DEDICATED_SERVER_ONLY
      Only runs on a dedicated server, and not in Singleplayer.
    • CLIENT_AND_SERVER

      @SerializedName("client_and_server") public static final Environment 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_OPTIONAL
      Must 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_OPTIONAL
      Must 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_BOTH
      Can be installed on just the client or just the server to function, but functionality is enhanced when it is on both.
    • CLIENT_OR_SERVER

      @SerializedName("client_or_server") public static final Environment 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

      @SerializedName("singleplayer_only") public static final Environment SINGLEPLAYER_ONLY
      Only works in Singleplayer, does not function in a Multiplayer environment.
  • Method Details

    • values

      public static Environment[] 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

      public static Environment valueOf(String name)
      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 name
      NullPointerException - if the argument is null