@Deprecated public static enum EntityDamageEvent.DamageModifier extends Enum<EntityDamageEvent.DamageModifier>
Enum Constant and Description |
---|
ABSORPTION
Deprecated.
This represents the damage reduction caused by the absorption potion
effect.
|
ARMOR
Deprecated.
This represents the damage reduction caused by wearing armor.
|
BASE
Deprecated.
This represents the amount of damage being done, also known as the
raw
EntityDamageEvent.getDamage() . |
BLOCKING
Deprecated.
This represents the damage reduction caused by blocking, only present for
Players . |
HARD_HAT
Deprecated.
This represents the damage reduced by a wearing a helmet when hit
by a falling block.
|
MAGIC
Deprecated.
This represents the damage reduction caused by the combination of:
Armor enchantments
Witch's potion resistance
|
RESISTANCE
Deprecated.
This represents the damage reduction caused by the Resistance potion effect.
|
Modifier and Type | Method and Description |
---|---|
static EntityDamageEvent.DamageModifier |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static EntityDamageEvent.DamageModifier[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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(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 © 2022. All rights reserved.