Cancellable
public class EntityDamageByEntityEvent extends EntityDamageEvent
EntityDamageEvent.DamageCause, EntityDamageEvent.DamageModifier
Event.Result
entity
Constructor | 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 com.google.common.base.Function<? super Double,Double>> modifierFunctions) |
Modifier and Type | Method | 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 com.google.common.base.Function<? super Double,Double>> modifierFunctions)
@NotNull public @NotNull Entity getDamager()
Copyright © 2020. All rights reserved.