Interface Canvas.ButtonClick

All Known Subinterfaces:
Canvas.GenericClick, Canvas.SelfInventoryClick
Enclosing class:
Canvas
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 Canvas.ButtonClick
A button click. This is called when a player clicks on the button.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClick(@NotNull org.bukkit.entity.Player target, @NotNull Item clicked, @NotNull org.bukkit.event.inventory.InventoryClickEvent event, @NotNull Canvas it)
    Called when a target clicks on the button.
  • Method Details

    • onClick

      void onClick(@NotNull @NotNull org.bukkit.entity.Player target, @NotNull @NotNull Item clicked, @NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event, @NotNull @NotNull Canvas it)
      Called when a target clicks on the button.
      Parameters:
      target - the target
      event - the event