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, setEntity
public EntityDeathEvent(Entity entity)
entity
- the entity that has diedpublic EntityDamageEvent deathCause()
public Player killedByPlayer()
public boolean wasKilledByPlayer()
public LivingEntity entity()
entity
in class EntityEvent
Copyright © 2016. All rights reserved.