Class ApplicationEvent
java.lang.Object
civitas.celestis.event.Event
civitas.celestis.event.application.ApplicationEvent
- All Implemented Interfaces:
Handleable,Unique<UUID>
- Direct Known Subclasses:
ApplicationStartedEvent,ApplicationStoppingEvent
An event called by the application to notify classes that there was a
significant change in the application's state.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ApplicationThe application which triggered this event. -
Constructor Summary
ConstructorsConstructorDescriptionApplicationEvent(Application application) Creates a new application event.ApplicationEvent(Application application, Handleable cause) Creates a new application event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the application which triggered this event.Methods inherited from class civitas.celestis.event.Event
getCause, getUniqueId, toString
-
Field Details
-
application
The application which triggered this event.
-
-
Constructor Details
-
ApplicationEvent
Creates a new application event.- Parameters:
application- The application which invoked this event
-
ApplicationEvent
Creates a new application event.- Parameters:
application- The application which invoked this eventcause- The cause of this event's invocation
-
-
Method Details
-
getApplication
Returns the application which triggered this event.- Returns:
- The application which triggered this event
-