endstone::WeatherChangeEvent
Called when the weather (rain) state in a world is changing.
Bases: endstone::Cancellable< WeatherEvent >
Attributes:
Name | Description |
---|---|
NAME |
Functions:
Name | Description |
---|---|
WeatherChangeEvent | |
getEventName | |
toWeatherState |
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