Package com.lahuca.botsentry.api
Enum APIPlatform
- java.lang.Object
-
- java.lang.Enum<APIPlatform>
-
- com.lahuca.botsentry.api.APIPlatform
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<APIPlatform>
public enum APIPlatform extends java.lang.Enum<APIPlatform>
Enum for the platforms the API can run on.- See Also:
BotSentryAPI
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUNGEECORD
Value for BungeeCord like systems (Waterfall, FlameCord, etc.)SPIGOT
Value for Spigot like systems (Paper, etc.)SPONGE
Value for Sponge like systems (SpongeVanilla, SpongeForge, etc.)UNKNOWN
Value to be used when API is not familiar with a platform a newer version can have.VELOCITY
Value for Velocity like systems (Velocity Powered, etc.)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static APIPlatform
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static APIPlatform[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUNGEECORD
public static final APIPlatform BUNGEECORD
Value for BungeeCord like systems (Waterfall, FlameCord, etc.)
-
SPIGOT
public static final APIPlatform SPIGOT
Value for Spigot like systems (Paper, etc.)
-
VELOCITY
public static final APIPlatform VELOCITY
Value for Velocity like systems (Velocity Powered, etc.)
-
SPONGE
public static final APIPlatform SPONGE
Value for Sponge like systems (SpongeVanilla, SpongeForge, etc.)
-
UNKNOWN
public static final APIPlatform UNKNOWN
Value to be used when API is not familiar with a platform a newer version can have. Value is there to make it possible for the "older" API to work for later versions.
-
-
Method Detail
-
values
public static APIPlatform[] 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 (APIPlatform c : APIPlatform.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static APIPlatform 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
-
-