Interface Button.ClickHandler

All Known Subinterfaces:
Button.CancellingClickHandler
Enclosing interface:
Button
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Button.ClickHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull Button.ClickHandler
    cancelling(BiConsumer<Button,org.bukkit.event.inventory.InventoryClickEvent> handler)
    A click handler that always cancels event
    boolean
    click(@NotNull Button self, @NotNull org.bukkit.event.inventory.InventoryClickEvent e)
     
    static @NotNull Button.ClickHandler
    A no-op click handler
  • Method Details

    • noop

      @Contract(pure=true) @NotNull static @NotNull Button.ClickHandler noop()
      A no-op click handler
    • cancelling

      @NotNull static @NotNull Button.ClickHandler cancelling(BiConsumer<Button,org.bukkit.event.inventory.InventoryClickEvent> handler)
      A click handler that always cancels event
      Parameters:
      handler - Inner handler
      Returns:
      Handler
    • click

      boolean click(@NotNull @NotNull Button self, @NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent e)