Skip to Content
⚠ Under Construction
ReferenceC++ APIEventHandler

endstone::EventHandler

Represents a registered EventHandler which associates with a Plugin .

Functions:

EventHandler

EventHandler(std::string event, std::function<void(Event &)> executor, EventPriority priority, Plugin &plugin, bool ignore_cancelled)

callEvent

void callEvent(Event &event) const

Calls the event executor

Parameters:

  • event The event

getEventType

std::string getEventType() const

Gets the event type for this registration

Returns:

Registered event type

getPlugin

Plugin &getPlugin() const

Gets the plugin for this registration

Returns:

Registered Plugin

getPriority

EventPriority getPriority() const

Gets the priority for this registration

Returns:

Registered Priority

isIgnoreCancelled

bool isIgnoreCancelled() const

Whether this listener accepts cancelled events

Returns:

True when ignoring cancelled events

Last updated on