Interface GuiElement.Action

Enclosing class:
GuiElement

public static interface GuiElement.Action
  • Method Summary

    Modifier and Type Method Description
    boolean onClick​(GuiElement.Click click)
    Executed when a player clicks on an element
  • Method Details

    • onClick

      boolean onClick​(GuiElement.Click click)
      Executed when a player clicks on an element
      Parameters:
      click - The Click class containing information about the click
      Returns:
      Whether or not the click event should be cancelled