public class EntityDamageByEntityEvent extends EntityDamageEvent
EntityDamageEvent.DamageCause, EntityDamageEvent.DamageModifier
Event.Result
entity
Constructor and Description |
---|
EntityDamageByEntityEvent(@NotNull Entity damager,
@NotNull Entity damagee,
@NotNull EntityDamageEvent.DamageCause cause,
double damage) |
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) |
Modifier and Type | Method and Description |
---|---|
@NotNull Entity |
getDamager()
Returns the entity that damaged the defender.
|
getCause, getDamage, getDamage, getFinalDamage, getHandlerList, getHandlers, getOriginalDamage, isApplicable, isCancelled, setCancelled, setDamage, setDamage
getEntity, getEntityType
callEvent, getEventName, isAsynchronous
public EntityDamageByEntityEvent(@NotNull @NotNull Entity damager, @NotNull @NotNull Entity damagee, @NotNull @NotNull EntityDamageEvent.DamageCause cause, double damage)
public EntityDamageByEntityEvent(@NotNull @NotNull Entity damager, @NotNull @NotNull Entity damagee, @NotNull @NotNull EntityDamageEvent.DamageCause cause, @NotNull @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)
Copyright © 2021. All rights reserved.