java.io.Serializable
, java.lang.Comparable<CreeperPowerEvent.PowerCause>
public static enum CreeperPowerEvent.PowerCause extends java.lang.Enum<CreeperPowerEvent.PowerCause>
Enum Constant | 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 | Description |
---|---|---|
static CreeperPowerEvent.PowerCause |
valueOf(java.lang.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(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.