Enum Class AdditionalFileType

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

public enum AdditionalFileType extends Enum<AdditionalFileType>
The enum representing the additional file types supported by Modrinth.
  • Enum Constant Details

    • REQUIRED_RESOURCE_PACK

      @SerializedName("required-resource-pack") public static final AdditionalFileType REQUIRED_RESOURCE_PACK
      The file is a resource pack file that must be used alongside the file. Primarily meant for data pack projects.
    • OPTIONAL_RESOURCE_PACK

      @SerializedName("optional-resource-pack") public static final AdditionalFileType OPTIONAL_RESOURCE_PACK
      The file is a resource pack file that can be used alongside the file. Primarily meant for data pack projects.
    • SOURCES_JAR

      @SerializedName("sources-jar") public static final AdditionalFileType SOURCES_JAR
      The file is a JAR containing source code.
    • DEV_JAR

      @SerializedName("dev-jar") public static final AdditionalFileType DEV_JAR
      The file is a JAR containing unmapped or development code.
    • JAVADOC_JAR

      @SerializedName("javadoc-jar") public static final AdditionalFileType JAVADOC_JAR
      The file is a JAR containing Javadoc documentation.
    • SIGNATURE

      @SerializedName("signature") public static final AdditionalFileType SIGNATURE
      The file is a signature file (asc, gpg, or sig).
    • OTHER

      @SerializedName("") public static final AdditionalFileType OTHER
      The file is a different type of additional file.
  • Method Details

    • values

      public static AdditionalFileType[] 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 AdditionalFileType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AdditionalFileType>