@Deprecated public static enum EntityDamageEvent.DamageModifier extends java.lang.Enum<EntityDamageEvent.DamageModifier>
枚举常量和说明 |
---|
ABSORPTION
已过时。
This represents the damage reduction caused by the absorption potion
effect.
|
ARMOR
已过时。
This represents the damage reduction caused by wearing armor.
|
BASE
已过时。
This represents the amount of damage being done, also known as the
raw
EntityDamageEvent.getDamage() . |
BLOCKING
已过时。
This represents the damage reduction caused by blocking, only present for
Players . |
HARD_HAT
已过时。
This represents the damage reduced by a wearing a helmet when hit
by a falling block.
|
MAGIC
已过时。
This represents the damage reduction caused by the combination of:
Armor enchantments
Witch's potion resistance
|
RESISTANCE
已过时。
This represents the damage reduction caused by the Resistance potion effect.
|
限定符和类型 | 方法和说明 |
---|---|
static EntityDamageEvent.DamageModifier |
valueOf(java.lang.String name)
已过时。
返回带有指定名称的该类型的枚举常量。
|
static EntityDamageEvent.DamageModifier[] |
values()
已过时。
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final EntityDamageEvent.DamageModifier BASE
EntityDamageEvent.getDamage()
.public static final EntityDamageEvent.DamageModifier HARD_HAT
public static final EntityDamageEvent.DamageModifier BLOCKING
Players
.public static final EntityDamageEvent.DamageModifier ARMOR
public static final EntityDamageEvent.DamageModifier RESISTANCE
public static final EntityDamageEvent.DamageModifier MAGIC
public static final EntityDamageEvent.DamageModifier ABSORPTION
public static EntityDamageEvent.DamageModifier[] values()
for (EntityDamageEvent.DamageModifier c : EntityDamageEvent.DamageModifier.values()) System.out.println(c);
public static EntityDamageEvent.DamageModifier valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值