Package org.bukkit.event.entity
Class EntityRemoveEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityRemoveEvent
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Deprecated, for removal: This API element is subject to removal in a future version.Represents various ways an entity gets removed.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
ConstructorDescriptionEntityRemoveEvent
(@NotNull Entity what, @NotNull EntityRemoveEvent.Cause cause) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the cause why the entity got removed.static @NotNull HandlerList
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityType
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
Method Details
-
getCause
Deprecated, for removal: This API element is subject to removal in a future version.Gets the cause why the entity got removed.- Returns:
- the cause why the entity got removed
-
getHandlers
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHandlers
in classEvent
-
getHandlerList
Deprecated, for removal: This API element is subject to removal in a future version.
-
EntityRemoveFromWorldEvent
instead