public static enum LightningStrikeEvent.Cause extends Enum<LightningStrikeEvent.Cause>
Enum Constant and Description |
---|
COMMAND
Triggered by the /summon command.
|
TRAP
Triggered by a skeleton horse trap.
|
TRIDENT
Triggered by an enchanted trident.
|
UNKNOWN
Unknown trigger.
|
WEATHER
Triggered by weather.
|
Modifier and Type | Method and Description |
---|---|
static LightningStrikeEvent.Cause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LightningStrikeEvent.Cause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LightningStrikeEvent.Cause COMMAND
public static final LightningStrikeEvent.Cause TRIDENT
public static final LightningStrikeEvent.Cause TRAP
public static final LightningStrikeEvent.Cause WEATHER
public static final LightningStrikeEvent.Cause UNKNOWN
public static LightningStrikeEvent.Cause[] values()
for (LightningStrikeEvent.Cause c : LightningStrikeEvent.Cause.values()) System.out.println(c);
public static LightningStrikeEvent.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 © 2021. All rights reserved.