Package xyz.srnyx.annoyingapi
Enum Class PluginPlatform.Platform
- All Implemented Interfaces:
Serializable,Comparable<PluginPlatform.Platform>,Constable
- Enclosing class:
PluginPlatform
Platforms that plugins can be downloaded (or checked for updates) from
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn external direct-download URLA URL that the user can manually download the plugin from -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether thisPluginPlatform.Platformrequires an author -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginPlatform.PlatformReturns the enum constant of this class with the specified name.static PluginPlatform.Platform[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MODRINTH
-
HANGAR
-
SPIGOT
-
BUKKIT
-
EXTERNAL
An external direct-download URLExample:
https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target/ProtocolLib.jar -
MANUAL
A URL that the user can manually download the plugin fromExample:
https://github.com/srnyx/annoying-api/releases/latest
-
-
Field Details
-
requiresAuthor
public final boolean requiresAuthorWhether thisPluginPlatform.Platformrequires an author
-
-
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
-