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) constCalls the event executor
Parameters:
eventThe event
getEventType
std::string getEventType() constGets the event type for this registration
Returns:
Registered event type
getPlugin
Plugin &getPlugin() constGets the plugin for this registration
Returns:
Registered Plugin
getPriority
EventPriority getPriority() constGets the priority for this registration
Returns:
Registered Priority
isIgnoreCancelled
bool isIgnoreCancelled() constWhether this listener accepts cancelled events
Returns:
True when ignoring cancelled events
Last updated on