|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CreeperPowerEvent.PowerCause>
org.bukkit.event.entity.CreeperPowerEvent.PowerCause
public static enum CreeperPowerEvent.PowerCause
An enum to specify the cause of the change in power
| Enum Constant Summary | |
|---|---|
LIGHTNING
Power change caused by a lightning bolt Powered state: true |
|
SET_OFF
Power change caused by something else (probably a plugin) Powered state: false |
|
SET_ON
Power change caused by something else (probably a plugin) Powered state: true |
|
| Method Summary | |
|---|---|
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're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final CreeperPowerEvent.PowerCause LIGHTNING
public static final CreeperPowerEvent.PowerCause SET_ON
public static final CreeperPowerEvent.PowerCause SET_OFF
| Method Detail |
|---|
public static final 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 name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||