|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.Event org.bukkit.event.entity.EntityEvent org.bukkit.event.entity.EntityDamageEvent org.bukkit.event.entity.EntityDamageByBlockEvent
public class EntityDamageByBlockEvent
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 |
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)
|
|
EntityDamageByBlockEvent(Block damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
int damage)
Deprecated. |
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, 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 |
---|
@Deprecated public EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, int damage)
public EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, double damage)
Method Detail |
---|
public Block getDamager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |