Skip to content

Class endstone::ChunkEvent

ClassList > endstone > ChunkEvent

Represents a Chunk related event.

  • #include <endstone/event/chunk/chunk_event.h>

Inherits the following classes: endstone::DimensionEvent

Inherited by the following classes: endstone::ChunkLoadEvent, endstone::ChunkUnloadEvent

Public Functions

Type Name
ChunkEvent (Chunk & chunk)
Chunk & getChunk () const

Public Functions inherited from endstone::DimensionEvent

See endstone::DimensionEvent

Type Name
DimensionEvent (Dimension & dimension)
Dimension & getDimension () const

Public Functions inherited from endstone::LevelEvent

See endstone::LevelEvent

Type Name
LevelEvent (Level & level)
Level & getLevel () const

Public Functions inherited from endstone::Event

See endstone::Event

Type Name
Event (bool async=false)
Event (const Event &) = delete
virtual std::string getEventName () const = 0
bool isAsynchronous () const
Event & operator= (const Event &) = delete
virtual ~Event () = default

Public Functions Documentation

function ChunkEvent

inline explicit endstone::ChunkEvent::ChunkEvent (
    Chunk & chunk
) 

function getChunk

inline Chunk & endstone::ChunkEvent::getChunk () const

Gets the chunk being loaded/unloaded

Returns:

Chunk that triggered this event



The documentation for this class was generated from the following file include/endstone/event/chunk/chunk_event.h