# Uses of Enum Class
org.bukkit.event.entity.EntityDamageEvent.DamageModifier

Packages that use EntityDamageEvent.DamageModifier
Package
Description
org.bukkit.event.entity
`Events` relating to `entities`, excluding some directly referencing some more specific entity types.

## Uses of EntityDamageEvent.DamageModifier in org.bukkit.event.entity

Methods in org.bukkit.event.entity that return EntityDamageEvent.DamageModifier
Modifier and Type
Method
Description
`static EntityDamageEvent.DamageModifier`
EntityDamageEvent.DamageModifier.`valueOf(String name)`
Deprecated.
Returns the enum constant of this class with the specified name.
`static EntityDamageEvent.DamageModifier[]`
EntityDamageEvent.DamageModifier.`values()`
Deprecated.
Returns an array containing the constants of this enum class, in the order they are declared.
Methods in org.bukkit.event.entity with parameters of type EntityDamageEvent.DamageModifier
Modifier and Type
Method
Description
`double`
EntityDamageEvent.`getDamage(@NotNull EntityDamageEvent.DamageModifier type)`
Gets the damage change for some modifier
`double`
EntityDamageEvent.`getOriginalDamage(@NotNull EntityDamageEvent.DamageModifier type)`
Gets the original damage for the specified modifier, as defined at this event's construction.
`boolean`
EntityDamageEvent.`isApplicable(@NotNull EntityDamageEvent.DamageModifier type)`
This checks to see if a particular modifier is valid for this event's caller, such that, `EntityDamageEvent.setDamage(DamageModifier, double)` will not throw an `UnsupportedOperationException`.
`void`
EntityDamageEvent.`setDamage(@NotNull EntityDamageEvent.DamageModifier type, double damage)`
Sets the damage for the specified modifier.
Constructor parameters in org.bukkit.event.entity with type arguments of type EntityDamageEvent.DamageModifier
Modifier
Constructor
Description
``
`EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`
``
`EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`
Deprecated.
``
`EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions, boolean critical)`
``
`EntityDamageEvent(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`