Enum SupportStatus

java.lang.Object
java.lang.Enum<SupportStatus>
masecla.modrinth4j.model.project.SupportStatus
All Implemented Interfaces:
Serializable, Comparable<SupportStatus>, java.lang.constant.Constable

public enum SupportStatus extends Enum<SupportStatus>
Represents a support status. This is used to determine if a mod supports a specific environment, such as CLIENT or SERVER.
  • Enum Constant Details

    • REQUIRED

      @SerializedName("required") public static final SupportStatus REQUIRED
      The project is required to run under this.
    • OPTIONAL

      @SerializedName("optional") public static final SupportStatus OPTIONAL
      The project is optional to run under this.
    • UNSUPPORTED

      @SerializedName("unsupported") public static final SupportStatus UNSUPPORTED
      The project does not support this.
  • Method Details

    • values

      public static SupportStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SupportStatus valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null