Package de.marcely.bedwars.api.arena
Enum ArenaWeatherType
- All Implemented Interfaces:
Serializable
,Comparable<ArenaWeatherType>
,java.lang.constant.Constable
A per-arena weather that'll be used during a match.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable WeatherType
asBukkit()
Get the equivalent of Bukkit's APIgetIcon()
Get the icon that is being displayed in the properties menustatic ArenaWeatherType
Returns the enum constant of this type with the specified name.static ArenaWeatherType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNTOUCHED
Weather will be untouched by MBedwars -
CLEAR
Weather will be fixed to clear -
RAINING
Weather will be fixed to precipitation
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
asBukkit
Get the equivalent of Bukkit's API- Returns:
- The equivalent of Bukkit's API.
null
if untouched
-
getIcon
Get the icon that is being displayed in the properties menu- Returns:
- The icon used in GUIs
-