public class EntityDeathEvent extends EntityEvent
| Constructor and Description |
|---|
EntityDeathEvent(Entity entity) |
| Modifier and Type | Method and Description |
|---|---|
EntityDamageEvent |
deathCause() |
LivingEntity |
entity() |
Player |
killedByPlayer()
Returns a Player if a player was involved in the killing of this entity, else null
|
boolean |
wasKilledByPlayer()
Returns whether or not a player was involved in the killing of this entity
|
cancel, isIgnored, setEntitypublic EntityDeathEvent(Entity entity)
entity - the entity that has diedpublic EntityDamageEvent deathCause()
public Player killedByPlayer()
public boolean wasKilledByPlayer()
public LivingEntity entity()
entity in class EntityEventCopyright © 2016. All rights reserved.