程序包 org.bukkit.event.entity

# 类 EntityRemoveEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityRemoveEvent

@Experimental public class EntityRemoveEvent extends EntityEvent
Called when an `Entity` is removed.

This event should only be used for monitoring. The result of modifying the entity during or after this event is unspecified. This event is not called for a `Player`.

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  类
  说明
  `static enum`
  `EntityRemoveEvent.Cause`
  Represents various ways an entity gets removed.

  ## 从类继承的嵌套类/接口 org.bukkit.event.Event

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.entity.EntityEvent

  `entity`

- ## 构造器概要

  构造器
  构造器
  说明
  `EntityRemoveEvent(@NotNull Entity what, @NotNull EntityRemoveEvent.Cause cause)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull EntityRemoveEvent.Cause`
  `getCause()`
  Gets the cause why the entity got removed.
  `static @NotNull HandlerList`
  `getHandlerList()`
  `@NotNull HandlerList`
  `getHandlers()`

  ### 从类继承的方法 org.bukkit.event.entity.EntityEvent

  `getEntity, getEntityType`

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### EntityRemoveEvent

    public EntityRemoveEvent(@NotNull @NotNull Entity what, @NotNull @NotNull EntityRemoveEvent.Cause cause)

- ## 方法详细资料

  - ### getCause

    @NotNull public @NotNull EntityRemoveEvent.Cause getCause()
    Gets the cause why the entity got removed.
    返回:
      the cause why the entity got removed

  - ### getHandlers

    @NotNull public @NotNull HandlerList getHandlers()
    指定者:
      `getHandlers` 在类中 `Event`

  - ### getHandlerList

    @NotNull public static @NotNull HandlerList getHandlerList()