Skip to Content
⚠ Under Construction
ReferenceC++ APIWeatherChangeEvent

endstone::WeatherChangeEvent

Called when the weather (rain) state in a world is changing.

Bases: endstone::Cancellable< WeatherEvent >

Attributes:

NameDescription
NAME

Functions:

NAME

const std::string endstone::WeatherChangeEvent::NAME;

WeatherChangeEvent

WeatherChangeEvent(Level &level, const bool to)

getEventName

std::string getEventName() override const

Gets a user-friendly identifier for this event.

Returns:

name of this event

toWeatherState

bool toWeatherState() const

Gets the state of weather that the world is being set to

Returns:

true if the weather is being set to raining, false otherwise

Last updated on