Package xyz.srnyx.annoyingapi
Enum PluginPlatform.Platform
- java.lang.Object
-
- java.lang.Enum<PluginPlatform.Platform>
-
- xyz.srnyx.annoyingapi.PluginPlatform.Platform
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PluginPlatform.Platform>
- Enclosing class:
- PluginPlatform
public static enum PluginPlatform.Platform extends java.lang.Enum<PluginPlatform.Platform>
Platforms that plugins can be downloaded (or checked for updates) from
-
-
Field Summary
Fields Modifier and Type Field Description booleanrequiresAuthorWhether thisPluginPlatform.Platformrequires an author
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PluginPlatform.PlatformvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PluginPlatform.Platform[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MODRINTH
public static final PluginPlatform.Platform MODRINTH
-
HANGAR
public static final PluginPlatform.Platform HANGAR
-
SPIGOT
public static final PluginPlatform.Platform SPIGOT
-
BUKKIT
public static final PluginPlatform.Platform BUKKIT
-
EXTERNAL
public static final PluginPlatform.Platform EXTERNAL
An external direct-download URLExample:
https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target/ProtocolLib.jar
-
MANUAL
public static final PluginPlatform.Platform MANUAL
A URL that the user can manually download the plugin fromExample:
https://github.com/srnyx/annoying-api/releases/latest
-
-
Field Detail
-
requiresAuthor
public final boolean requiresAuthor
Whether thisPluginPlatform.Platformrequires an author
-
-
Method Detail
-
values
public static PluginPlatform.Platform[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PluginPlatform.Platform c : PluginPlatform.Platform.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PluginPlatform.Platform valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-