Enum Class AdditionalFileType
- All Implemented Interfaces:
Serializable,Comparable<AdditionalFileType>,Constable
The enum representing the additional file types supported by Modrinth.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe file is a JAR containing unmapped or development code.The file is a JAR containing Javadoc documentation.The file is a resource pack file that can be used alongside the file.The file is a different type of additional file.The file is a resource pack file that must be used alongside the file.The file is a signature file (asc, gpg, or sig).The file is a JAR containing source code. -
Method Summary
Modifier and TypeMethodDescriptiontoString()static AdditionalFileTypeReturns the enum constant of this class with the specified name.static AdditionalFileType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED_RESOURCE_PACK
@SerializedName("required-resource-pack") public static final AdditionalFileType REQUIRED_RESOURCE_PACKThe 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_PACKThe file is a resource pack file that can be used alongside the file. Primarily meant for data pack projects. -
SOURCES_JAR
The file is a JAR containing source code. -
DEV_JAR
The file is a JAR containing unmapped or development code. -
JAVADOC_JAR
The file is a JAR containing Javadoc documentation. -
SIGNATURE
The file is a signature file (asc, gpg, or sig). -
OTHER
The file is a different type of additional file.
-
-
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
-
toString
- Overrides:
toStringin classEnum<AdditionalFileType>
-