org.bukkit.event.entity
Class EntityDamageByEntityEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.entity.EntityEvent
          extended by org.bukkit.event.entity.EntityDamageEvent
              extended by org.bukkit.event.entity.EntityDamageByEntityEvent
All Implemented Interfaces:
Cancellable

public class EntityDamageByEntityEvent
extends EntityDamageEvent

Called when an entity is damaged by an entity


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.entity.EntityDamageEvent
EntityDamageEvent.DamageCause
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
 
Constructor Summary
EntityDamageByEntityEvent(Entity damager, Entity damagee, EntityDamageEvent.DamageCause cause, int damage)
           
 
Method Summary
 Entity getDamager()
          Returns the entity that damaged the defender.
 
Methods inherited from class org.bukkit.event.entity.EntityDamageEvent
getCause, getDamage, getHandlerList, getHandlers, isCancelled, setCancelled, setDamage
 
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityType
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityDamageByEntityEvent

public EntityDamageByEntityEvent(Entity damager,
                                 Entity damagee,
                                 EntityDamageEvent.DamageCause cause,
                                 int damage)
Method Detail

getDamager

public Entity getDamager()
Returns the entity that damaged the defender.

Returns:
Entity that damaged the defender.


Copyright © 2013. All Rights Reserved.