endstone::ThunderChangeEvent
Called when the thunder state in a world is changing.
Bases: endstone::Cancellable< WeatherEvent >
Attributes:
| Name | Description |
|---|---|
NAME |
Functions:
| Name | Description |
|---|---|
ThunderChangeEvent | |
getEventName | |
toThunderState |
NAME
const std::string endstone::ThunderChangeEvent::NAME; ThunderChangeEvent
ThunderChangeEvent(Level &level, bool to) getEventName
std::string getEventName() override constGets a user-friendly identifier for this event.
Returns:
name of this event
toThunderState
bool toThunderState() constGets the state of thunder that the world is being set to
Returns:
true if the weather is being set to thundering, false otherwise
Last updated on