Class AbstractEventManager<T extends AbstractLuteceEvent>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void notifyListeners​(T event)
      Subscribe to this listener.
      void register​(java.lang.String strName, java.util.function.Consumer<T> consumerFunction)
      Subscribe to this listener.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractEventManager

        public AbstractEventManager()
    • Method Detail

      • register

        public void register​(java.lang.String strName,
                             java.util.function.Consumer<T> consumerFunction)
        Subscribe to this listener.
        Parameters:
        listener - the listener
      • notifyListeners

        public void notifyListeners​(T event)
        Subscribe to this listener.
        Parameters:
        listener - the listener