Skip to Content
⚠ Under Construction
ReferenceC++ APIThunderChangeEvent

endstone::ThunderChangeEvent

Called when the thunder state in a world is changing.

Bases: endstone::Cancellable< WeatherEvent >

Attributes:

NameDescription
NAME

Functions:

NAME

const std::string endstone::ThunderChangeEvent::NAME;

ThunderChangeEvent

ThunderChangeEvent(Level &level, bool to)

getEventName

std::string getEventName() override const

Gets a user-friendly identifier for this event.

Returns:

name of this event

toThunderState

bool toThunderState() const

Gets 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