Object EventUtils

  • All Implemented Interfaces:

    
    public class EventUtils
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static EventUtils INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean call(Event $self) Calls the event and tests if cancelled.
      final <T extends Event> Unit call(T $self, Function1<T, Unit> block)
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • call

         final Boolean call(Event $self)

        Calls the event and tests if cancelled.

        Returns:

        false if event was cancelled, if cancellable. otherwise true.

      • call

         final <T extends Event> Unit call(T $self, Function1<T, Unit> block)