Class EntitiesUnloadEvent


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

    • EntitiesUnloadEvent

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

    • getEntities

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

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

      @NotNull public static @NotNull HandlerList getHandlerList()