Package 

Interface Events

  • All Implemented Interfaces:

    
    public interface Events<E extends Object>
    
                        

    Interface for registering events.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract <T extends E> Unit on(KClass<T> clazz, EventPriority priority, Boolean ignoreCancelled, SuspendFunction1<T, Unit> block) Register event handler.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • on

         abstract <T extends E> Unit on(KClass<T> clazz, EventPriority priority, Boolean ignoreCancelled, SuspendFunction1<T, Unit> block)

        Register event handler.

        Parameters:
        clazz - KClass of the event.
        priority - priority of event handler.
        ignoreCancelled - ignore when an event has been canceled.