Interface SGButtonListener
public interface SGButtonListener
Holds the event handler for an SGButton.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonClick(org.bukkit.event.inventory.InventoryClickEvent event) The event handler that should be executed when an SGButton is clicked.
-
Method Details
-
onClick
void onClick(org.bukkit.event.inventory.InventoryClickEvent event) The event handler that should be executed when an SGButton is clicked. Implement this with a lambda when you create an SGButton.- Parameters:
event- The Bukkit/Spigot APIsInventoryClickEvent.
-