public class EntityDamageByEntityEvent extends EntityDamageEvent
EntityDamageEvent.DamageCause, EntityDamageEvent.DamageModifier
Event.Result
entity
Constructor and Description |
---|
EntityDamageByEntityEvent(Entity damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
double damage)
Deprecated.
|
EntityDamageByEntityEvent(Entity damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
int damage)
Deprecated.
|
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 and Description |
---|---|
Entity |
getDamager()
Returns the entity that damaged the defender.
|
_INVALID_getDamage, _INVALID_setDamage, getCause, getDamage, getDamage, getFinalDamage, getHandlerList, getHandlers, getOriginalDamage, isApplicable, isCancelled, setCancelled, setDamage, setDamage
getEntity, getEntityType
getEventName, isAsynchronous
@Deprecated public EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, int damage)
@Deprecated public EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, double damage)
public 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)
public Entity getDamager()
Copyright © 2022. All rights reserved.