Class EventHandlers

java.lang.Object
dev.demeng.pluginbase.event.filter.EventHandlers

public final class EventHandlers extends Object
Defines standard event predicates for use in functional event handlers.
  • Constructor Details

    • EventHandlers

      public EventHandlers()
  • Method Details

    • cancel

      @NotNull public static <T extends org.bukkit.event.Cancellable> @NotNull Consumer<T> cancel()
      Returns a consumer which cancels the event
      Type Parameters:
      T - the event type
      Returns:
      a consumer which cancels the event
    • uncancel

      @NotNull public static <T extends org.bukkit.event.Cancellable> @NotNull Consumer<T> uncancel()
      Returns a consumer which un-cancels the event
      Type Parameters:
      T - the event type
      Returns:
      a consumer which un-cancels the event