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
Represents a click action/callback of a button.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClick(org.bukkit.entity.Player player, MenuView view, int slot)
    Called when the button is clicked.
  • Method Details

    • onClick

      void onClick(org.bukkit.entity.Player player, MenuView view, int slot)
      Called when the button is clicked.
      Parameters:
      player - the player who clicked the button
      view - the menu view
      slot - the slot of the button