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