Package org.bukkit.event.entity
Enum EntityDamageEvent.DamageModifier
java.lang.Object
java.lang.Enum<EntityDamageEvent.DamageModifier>
org.bukkit.event.entity.EntityDamageEvent.DamageModifier
- All Implemented Interfaces:
- Serializable,- Comparable<EntityDamageEvent.DamageModifier>,- Constable
- Enclosing class:
- EntityDamageEvent
@Deprecated public static enum EntityDamageEvent.DamageModifier extends Enum<EntityDamageEvent.DamageModifier>
Deprecated.
This API is responsible for a large number of implementation
 problems and is in general unsustainable to maintain. It is likely to be
 removed very soon in a subsequent release. Please see
 https://www.spigotmc.org/threads/194446/ for more information.
An enum to specify the types of modifier
- 
Nested Class Summary
- 
Enum Constant SummaryEnum Constants Enum Constant Description ABSORPTIONDeprecated.This represents the damage reduction caused by the absorption potion effect.ARMORDeprecated.This represents the damage reduction caused by wearing armor.BASEDeprecated.This represents the amount of damage being done, also known as the rawEntityDamageEvent.getDamage().BLOCKINGDeprecated.This represents the damage reduction caused by blocking, only present forPlayers.HARD_HATDeprecated.This represents the damage reduced by a wearing a helmet when hit by a falling block.MAGICDeprecated.This represents the damage reduction caused by the combination of: Armor enchantments Witch's potion resistanceRESISTANCEDeprecated.This represents the damage reduction caused by the Resistance potion effect.
- 
Method SummaryModifier and Type Method Description static EntityDamageEvent.DamageModifiervalueOf(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.
- 
Enum Constant Details- 
BASEDeprecated.This represents the amount of damage being done, also known as the rawEntityDamageEvent.getDamage().
- 
HARD_HATDeprecated.This represents the damage reduced by a wearing a helmet when hit by a falling block.
- 
BLOCKINGDeprecated.This represents the damage reduction caused by blocking, only present forPlayers.
- 
ARMORDeprecated.This represents the damage reduction caused by wearing armor.
- 
RESISTANCEDeprecated.This represents the damage reduction caused by the Resistance potion effect.
- 
MAGICDeprecated.This represents the damage reduction caused by the combination of:- Armor enchantments
- Witch's potion resistance
 
- 
ABSORPTIONDeprecated.This represents the damage reduction caused by the absorption potion effect.
 
- 
- 
Method Details- 
valuesDeprecated.Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfDeprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-