Class 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.

  • Constructor Details

  • Method Details

    • getCause

      @NotNull public EntityRemoveEvent.Cause getCause()
      Gets the cause why the entity got removed.
      the cause why the entity got removed
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()