event
Interfaces, Classes and Traits
- Event
- En event wraps a event name and a payload. The payload contains additional information about the event.
- EventDispatcher
- The event dispatcher acts as the central hub where event listeners are hosted and where events are sent. The event dispatcher can be used in two notable ways:
- Listener
- A listener is a very simple class that contains an event name and an action.
- MutableEvent
- Mutable events allow the plugins to modify the payload of the event, providing the application with the ability to override the payload.