java.io.Serializable
, java.lang.Comparable<WeatherType>
public enum WeatherType extends java.lang.Enum<WeatherType>
Enum Constant | Description |
---|---|
CLEAR |
Clear weather, clouds but no rain.
|
DOWNFALL |
Raining or snowing depending on biome.
|
Modifier and Type | Method | Description |
---|---|---|
static WeatherType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static WeatherType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeatherType DOWNFALL
public static final WeatherType CLEAR
public static WeatherType[] values()
for (WeatherType c : WeatherType.values()) System.out.println(c);
public static WeatherType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.