Package ch.njol.skript
Enum Class ServerPlatform
- All Implemented Interfaces:
Serializable
,Comparable<ServerPlatform>
,Constable
Represents all server platforms that Skript runs on. Only some of the
platforms are "officially" supported, though.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCraftBukkit, but not Spigot or Paper.Glowstone (or similar) fully open source Minecraft server, which supports Spigot API.Paper Minecraft server, which is a Spigot fork with additional features.Spigot, with its Bukkit API extensions.Unknown Bukkit revision.Doesn't work at all currently. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerPlatform
Returns the enum constant of this class with the specified name.static ServerPlatform[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUKKIT_UNKNOWN
Unknown Bukkit revision. This is probably a bad thing... -
BUKKIT_CRAFTBUKKIT
CraftBukkit, but not Spigot or Paper. -
BUKKIT_SPIGOT
Spigot, with its Bukkit API extensions. Officially supported. -
BUKKIT_PAPER
Paper Minecraft server, which is a Spigot fork with additional features. Officially supported. -
BUKKIT_GLOWSTONE
Glowstone (or similar) fully open source Minecraft server, which supports Spigot API. -
SPONGE
Doesn't work at all currently.
-
-
Field Details
-
name
-
works
public boolean works -
supported
public boolean supported
-
-
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
-