Class EntitiesLoadEvent


public class EntitiesLoadEvent extends ChunkEvent
Called when entities are loaded.
The provided chunk may or may not be loaded.
Since:
1.17.1
  • Constructor Details

    • EntitiesLoadEvent

      @Internal public EntitiesLoadEvent(@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 loaded.
      Returns:
      unmodifiable list of loaded entities.
      Since:
      1.17.1
    • getHandlers

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

      @NotNull public static @NotNull HandlerList getHandlerList()
      Since:
      1.17.1