Class ChunkEvent

Direct Known Subclasses:
ChunkLoadEvent, ChunkPopulateEvent, ChunkUnloadEvent, EntitiesLoadEvent, EntitiesUnloadEvent

public abstract class ChunkEvent extends WorldEvent
Represents a Chunk related event
  • Field Details

    • chunk

      protected Chunk chunk
  • Constructor Details

    • ChunkEvent

      protected ChunkEvent(@NotNull Chunk chunk)
  • Method Details

    • getChunk

      @NotNull public Chunk getChunk()
      Gets the chunk being loaded/unloaded
      Returns:
      Chunk that triggered this event