Serializable, Comparable<LightningStrikeEvent.Cause>public static enum LightningStrikeEvent.Cause extends Enum<LightningStrikeEvent.Cause>
| Enum Constant | 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 | 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 © 2019. All rights reserved.