public static enum WeatherChangeEvent.Cause extends Enum<WeatherChangeEvent.Cause>
Enum Constant and Description |
---|
COMMAND |
NATURAL |
PLUGIN |
SLEEP |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static WeatherChangeEvent.Cause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeatherChangeEvent.Cause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeatherChangeEvent.Cause COMMAND
public static final WeatherChangeEvent.Cause NATURAL
public static final WeatherChangeEvent.Cause SLEEP
public static final WeatherChangeEvent.Cause PLUGIN
public static final WeatherChangeEvent.Cause UNKNOWN
public static WeatherChangeEvent.Cause[] values()
for (WeatherChangeEvent.Cause c : WeatherChangeEvent.Cause.values()) System.out.println(c);
public static WeatherChangeEvent.Cause valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.