Package 

Class BukkitEventsKt

    • 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
      final static <T extends Event> Unit on(Events<Event> $self, EventPriority priority, Boolean ignoreCancelled, SuspendFunction1<T, Unit> block) Register event handler.
      final static <T extends Event, Cancellable> Unit cancelIf(Events<Event> $self, EventPriority priority, SuspendFunction1<T, Boolean> block) Register cancelling event handler.
      final static <T extends Event, Cancellable> Unit cancelIfNot(Events<Event> $self, EventPriority priority, SuspendFunction1<T, Boolean> block) Register unless cancelling 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

         final static <T extends Event> Unit on(Events<Event> $self, EventPriority priority, Boolean ignoreCancelled, SuspendFunction1<T, Unit> block)

        Register event handler.

        Parameters:
        priority - priority of event handler.
        ignoreCancelled - ignore when an event has been canceled.
      • cancelIf

         final static <T extends Event, Cancellable> Unit cancelIf(Events<Event> $self, EventPriority priority, SuspendFunction1<T, Boolean> block)

        Register cancelling event handler.

        Parameters:
        priority - priority of event handler.
      • cancelIfNot

         final static <T extends Event, Cancellable> Unit cancelIfNot(Events<Event> $self, EventPriority priority, SuspendFunction1<T, Boolean> block)

        Register unless cancelling event handler.

        Parameters:
        priority - priority of event handler.