Class NotificationEvent
java.lang.Object
civitas.celestis.event.Event
civitas.celestis.event.notification.NotificationEvent
- All Implemented Interfaces:
Handleable,Unique<UUID>
An event called to notify the entire application that a certain action
has been performed. All subclasses of this event will be sent to every
listener which listens to
NotificationEvent.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new notification event with no message and no cause.NotificationEvent(Handleable cause) Creates a new notification event with no message.NotificationEvent(String message) Creates a new notification event with no cause.NotificationEvent(String message, Handleable cause) Creates a new notification event. -
Method Summary
Methods inherited from class civitas.celestis.event.Event
getCause, getUniqueId, toString
-
Field Details
-
message
The message of this notification. If no message is specified, the value will be an empty string. ("")
-
-
Constructor Details
-
NotificationEvent
public NotificationEvent()Creates a new notification event with no message and no cause. -
NotificationEvent
Creates a new notification event with no message.- Parameters:
cause- The cause of this event
-
NotificationEvent
Creates a new notification event with no cause.- Parameters:
message- The message of this notification
-
NotificationEvent
Creates a new notification event.- Parameters:
message- The message of this notificationcause- The cause of this event
-
-
Method Details
-
getMessage
Returns the message of this notification. If no message is specified, this will return "".- Returns:
- The message of this notification
-