public static enum EntityDamageEvent.Cause extends Enum<EntityDamageEvent.Cause>
Enum Constant and Description |
---|
ANVIL |
CONTACT |
DROWNING |
ENDER_PEARL |
EXPLOSION |
FALL |
FIRE |
HIT |
LAVA |
LIGHTNING |
POISON |
PROJECTILE |
STARVATION |
SUFFOCATION |
VOID |
WITHER |
Modifier and Type | Method and Description |
---|---|
static EntityDamageEvent.Cause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityDamageEvent.Cause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityDamageEvent.Cause STARVATION
public static final EntityDamageEvent.Cause FIRE
public static final EntityDamageEvent.Cause FALL
public static final EntityDamageEvent.Cause EXPLOSION
public static final EntityDamageEvent.Cause HIT
public static final EntityDamageEvent.Cause ENDER_PEARL
public static final EntityDamageEvent.Cause PROJECTILE
public static final EntityDamageEvent.Cause LIGHTNING
public static final EntityDamageEvent.Cause DROWNING
public static final EntityDamageEvent.Cause SUFFOCATION
public static final EntityDamageEvent.Cause ANVIL
public static final EntityDamageEvent.Cause CONTACT
public static final EntityDamageEvent.Cause LAVA
public static final EntityDamageEvent.Cause POISON
public static final EntityDamageEvent.Cause WITHER
public static final EntityDamageEvent.Cause VOID
public static EntityDamageEvent.Cause[] values()
for (EntityDamageEvent.Cause c : EntityDamageEvent.Cause.values()) System.out.println(c);
public static EntityDamageEvent.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 © 2016. All rights reserved.