Class EntitiesUnloadEvent


public class EntitiesUnloadEvent extends ChunkEvent
Called when entities are unloaded. The provided chunk may or may not be loaded.
  • Constructor Details

    • EntitiesUnloadEvent

      public EntitiesUnloadEvent(@NotNull Chunk chunk, @NotNull List<Entity> entities)
  • Method Details

    • getEntities

      @NotNull public List<Entity> getEntities()
      Get the entities which are being unloaded.
      Returns:
      unmodifiable list of unloaded entities.
    • getHandlers

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

      @NotNull public static HandlerList getHandlerList()