org.bukkit.event.entity
public class EntityDamageByBlockEvent extends EntityDamageEvent
EntityDamageEvent.DamageCause
Event.Result
entity
Constructor and Description |
---|
EntityDamageByBlockEvent(Block damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
double damage) |
EntityDamageByBlockEvent(Block damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
int damage)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Block |
getDamager()
Returns the block that damaged the player.
|
_INVALID_getDamage, _INVALID_setDamage, getCause, getDamage, getHandlerList, getHandlers, isCancelled, setCancelled, setDamage
getEntity, getEntityType
getEventName, isAsynchronous
@Deprecated public EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, int damage)
public EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, double damage)
public Block getDamager()
Copyright © 2014. All rights reserved.