public enum EntityDamageCause extends Enum<EntityDamageCause>
| Enum Constant and Description |
|---|
ANVIL |
BLOCK_EXPLOSION |
CHARGING |
CONTACT |
DROWNING |
ENTITY_ATTACK |
ENTITY_EXPLOSION |
FALL |
FALLING_BLOCK |
FIRE |
FIRE_TICK |
FIREWORKS |
FLY_INTO_WALL |
FREEZING |
LAVA |
LIGHTNING |
MAGIC |
MAGMA |
OVERRIDE |
PISTON |
PROJECTILE |
STALACTITE |
STALAGMITE |
STARVE |
SUFFOCATION |
SUICIDE |
TEMPERATURE |
THORNS |
VOID |
WITHER |
| Modifier and Type | Method and Description |
|---|---|
static EntityDamageCause |
from(int id) |
static EntityDamageCause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityDamageCause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityDamageCause OVERRIDE
public static final EntityDamageCause CONTACT
public static final EntityDamageCause ENTITY_ATTACK
public static final EntityDamageCause PROJECTILE
public static final EntityDamageCause SUFFOCATION
public static final EntityDamageCause FALL
public static final EntityDamageCause FIRE
public static final EntityDamageCause FIRE_TICK
public static final EntityDamageCause LAVA
public static final EntityDamageCause DROWNING
public static final EntityDamageCause BLOCK_EXPLOSION
public static final EntityDamageCause ENTITY_EXPLOSION
public static final EntityDamageCause VOID
public static final EntityDamageCause SUICIDE
public static final EntityDamageCause MAGIC
public static final EntityDamageCause WITHER
public static final EntityDamageCause STARVE
public static final EntityDamageCause ANVIL
public static final EntityDamageCause THORNS
public static final EntityDamageCause FALLING_BLOCK
public static final EntityDamageCause PISTON
public static final EntityDamageCause FLY_INTO_WALL
public static final EntityDamageCause MAGMA
public static final EntityDamageCause FIREWORKS
public static final EntityDamageCause LIGHTNING
public static final EntityDamageCause CHARGING
public static final EntityDamageCause TEMPERATURE
public static final EntityDamageCause FREEZING
public static final EntityDamageCause STALACTITE
public static final EntityDamageCause STALAGMITE
public static EntityDamageCause[] values()
for (EntityDamageCause c : EntityDamageCause.values()) System.out.println(c);
public static EntityDamageCause 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 nullpublic static EntityDamageCause from(int id)
Copyright © 2018–2022 NukkitX. All rights reserved.