Skip to content

Class endstone::WeatherEvent

ClassList > endstone > WeatherEvent

Represents a Weather-related event.

  • #include <endstone/event/weather/weather_event.h>

Inherits the following classes: endstone::Event

Inherited by the following classes: endstone::ThunderChangeEvent, endstone::WeatherChangeEvent

Public Functions

Type Name
WeatherEvent (Level & level)
Level & getLevel () const
~WeatherEvent () override

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
virtual bool isCancellable () const = 0
bool isCancelled () const
Event & operator= (const Event &) = delete
void setCancelled (bool cancel)
virtual ~Event () = default

Public Functions Documentation

function WeatherEvent

inline explicit endstone::WeatherEvent::WeatherEvent (
    Level & level
) 

function getLevel

inline Level & endstone::WeatherEvent::getLevel () const

Returns the Level where this event is occurring

Returns:

Level this event is occurring in


function ~WeatherEvent

endstone::WeatherEvent::~WeatherEvent () override


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