Class EntityDeathEvent
java.lang.Object
com.welcome234.pluginsystem.events.EntityDeathEvent
Called when an entity dies
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn enum used for entity death causes -
Constructor Summary
ConstructorsConstructorDescriptionEntityDeathEvent(int entityID, EntityDeathEvent.DeathCause cause, String playerKiller) -
Method Summary
Modifier and TypeMethodDescriptionGets the cause of the deathGets the entity that has diedGets the player who killed this entity, or null if the death was not caused by a player
-
Constructor Details
-
EntityDeathEvent
-
-
Method Details
-
getEntity
Gets the entity that has died- Returns:
- Entity instance
-
getDeathCause
Gets the cause of the death- Returns:
- Death cause
-
getKillerPlayer
Gets the player who killed this entity, or null if the death was not caused by a player- Returns:
- Player instance
-