Enum Class WeatherType
- All Implemented Interfaces:
Serializable, Comparable<WeatherType>, Constable
Represents the different weather types available in Hytale.
This enum wraps the native weather asset IDs used by the game.
- Since:
- 1.0.6
- Version:
- 1.0.6
- Author:
- HytaleLoader
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic WeatherTypefromAssetName(String assetName) Gets a WeatherType from its asset name.Gets the native asset name for this weather type.static WeatherTypeReturns the enum constant of this class with the specified name.static WeatherType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLEAR
-
CLOUDY
-
RAIN
-
LIGHT_RAIN
-
STORM
-
FOGGY
-
AUTUMN_WINDY
-
FIREFLIES
-
SWAMP
-
SWAMP_FOGGY
-
SWAMP_RAIN
-
SANDSTORM
-
CAVE_SHALLOW
-
CAVE_DEEP
-
CAVE_FOG
-
CAVE_MAGMA
-
BLOOD_MOON
-
VOID
-
-
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
-
getAssetName
Gets the native asset name for this weather type.- Returns:
- the asset name (e.g. "Zone1_Sunny")
-
fromAssetName
Gets a WeatherType from its asset name.- Parameters:
assetName- the asset name- Returns:
- the WeatherType, or null if not found
-