org.bukkit.event.entity
Class EntityDamageByBlockEvent

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.EntityDamageByBlockEvent
All Implemented Interfaces:
Cancellable

public class EntityDamageByBlockEvent
extends EntityDamageEvent

Called when an entity is damaged by a block


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.entity.EntityDamageEvent
EntityDamageEvent.DamageCause, EntityDamageEvent.DamageModifier
 
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
EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, double damage)
          Deprecated. 
EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, int damage)
          Deprecated. 
EntityDamageByBlockEvent(Block 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
 Block getDamager()
          Returns the block that damaged the player.
 
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 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

EntityDamageByBlockEvent

@Deprecated
public EntityDamageByBlockEvent(Block damager,
                                           Entity damagee,
                                           EntityDamageEvent.DamageCause cause,
                                           int damage)
Deprecated. 


EntityDamageByBlockEvent

@Deprecated
public EntityDamageByBlockEvent(Block damager,
                                           Entity damagee,
                                           EntityDamageEvent.DamageCause cause,
                                           double damage)
Deprecated. 


EntityDamageByBlockEvent

public EntityDamageByBlockEvent(Block 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 Detail

getDamager

public Block getDamager()
Returns the block that damaged the player.

Returns:
Block that damaged the player


Copyright © 2014. All rights reserved.