Interface ClickAction

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 interface ClickAction
Action that runs when a button is clicked.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull ClickAction
    andThen(@NotNull ClickAction next)
    Returns an action that runs this action first, then next.
    void
    onClick(@NotNull MenuView<?,?> view, @NotNull org.bukkit.event.inventory.InventoryClickEvent event)
    Handles the click.
  • Method Details

    • onClick

      void onClick(@NotNull @NotNull MenuView<?,?> view, @NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event)
      Handles the click.
    • andThen

      @NotNull default @NotNull ClickAction andThen(@NotNull @NotNull ClickAction next)
      Returns an action that runs this action first, then next.