Uses of Enum Class
org.bukkit.event.entity.EntityDamageEvent.DamageModifier
Package
Description
-
Uses of EntityDamageEvent.DamageModifier in org.bukkit.event.entity
Modifier and TypeMethodDescriptionDeprecated.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.Modifier and TypeMethodDescriptiondouble
EntityDamageEvent.getDamage
(EntityDamageEvent.DamageModifier type) Gets the damage change for some modifierdouble
EntityDamageEvent.getOriginalDamage
(EntityDamageEvent.DamageModifier type) Gets the original damage for the specified modifier, as defined at this event's construction.boolean
EntityDamageEvent.isApplicable
(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 anUnsupportedOperationException
.void
EntityDamageEvent.setDamage
(EntityDamageEvent.DamageModifier type, double damage) Sets the damage for the specified modifier.ModifierConstructorDescriptionEntityDamageByBlockEvent
(Block damager, BlockState damagerState, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDamageByBlockEvent
(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByEntityEvent
(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageByEntityEvent
(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) EntityDamageEvent
(Entity damagee, EntityDamageEvent.DamageCause cause, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions) Deprecated, for removal: This API element is subject to removal in a future version.EntityDamageEvent
(Entity damagee, EntityDamageEvent.DamageCause cause, DamageSource damageSource, Map<EntityDamageEvent.DamageModifier, Double> modifiers, Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> modifierFunctions)