Class NotificationListener

java.lang.Object
civitas.celestis.listener.notification.NotificationListener
All Implemented Interfaces:
Listener

public class NotificationListener extends Object implements Listener
A listener which exclusively listens to NotificationEvents, and prints them to the specified print stream.
  • Constructor Details

    • NotificationListener

      public NotificationListener()
      Creates a new notification listener. The print stream is designated to System.out by default.
    • NotificationListener

      public NotificationListener(@Nonnull PrintStream printStream)
      Creates a new notification listener.
      Parameters:
      printStream - The print stream to print messages to
  • Method Details