public static enum CreeperPowerEvent.PowerCause extends Enum<CreeperPowerEvent.PowerCause>
| Enum Constant and Description |
|---|
LIGHTNING
Power change caused by a lightning bolt
|
SET_OFF
Power change caused by something else (probably a plugin)
|
SET_ON
Power change caused by something else (probably a plugin)
|
| Modifier and Type | Method and Description |
|---|---|
static CreeperPowerEvent.PowerCause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreeperPowerEvent.PowerCause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreeperPowerEvent.PowerCause LIGHTNING
Powered state: true
public static final CreeperPowerEvent.PowerCause SET_ON
Powered state: true
public static final CreeperPowerEvent.PowerCause SET_OFF
Powered state: false
public static CreeperPowerEvent.PowerCause[] values()
for (CreeperPowerEvent.PowerCause c : CreeperPowerEvent.PowerCause.values()) System.out.println(c);
public static CreeperPowerEvent.PowerCause 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 © 2014. All rights reserved.