org.bukkit.event.entity
Class EntityDamageByEntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityDamageEvent
org.bukkit.event.entity.EntityDamageByEntityEvent
- All Implemented Interfaces:
- Cancellable
public class EntityDamageByEntityEvent
- extends EntityDamageEvent
Called when an entity is damaged by an entity
Constructor Summary |
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)
|
Method Summary |
Entity |
getDamager()
Returns the entity that damaged the defender. |
Methods inherited from class org.bukkit.event.entity.EntityDamageEvent |
_INVALID_getDamage, _INVALID_setDamage, getCause, getDamage, getDamage, getFinalDamage, getHandlerList, getHandlers, getOriginalDamage, isApplicable, isCancelled, setCancelled, setDamage, setDamage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityDamageByEntityEvent
@Deprecated
public EntityDamageByEntityEvent(Entity damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
int damage)
- Deprecated.
EntityDamageByEntityEvent
@Deprecated
public EntityDamageByEntityEvent(Entity damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
double damage)
- Deprecated.
EntityDamageByEntityEvent
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)
getDamager
public Entity getDamager()
- Returns the entity that damaged the defender.
- Returns:
- Entity that damaged the defender.
Copyright © 2014. All rights reserved.