Class SubmitGUIButton

All Implemented Interfaces:
Sizeable

public abstract class SubmitGUIButton extends GUIButton
Button which shows a confirm-item if clicked.
  • Field Details

    • SUBMIT_ITEM

      public static final org.bukkit.inventory.ItemStack SUBMIT_ITEM
      The default submit-item
  • Constructor Details

    • SubmitGUIButton

      public SubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, int cooldown, org.bukkit.Sound sound, String permission, org.bukkit.inventory.ItemStack submitItem, int submitDelay)
      Creates a new SubmitGUIButton
      Parameters:
      gui - The GUI
      item - The ItemStack of the Button
      submitItem - The item to be displayed on submit
      cooldown - The cooldown of the Button
      permission - The permission required to press this button
      sound - The sound played when pressing this button
      submitDelay - The delay before the submit item is shown
  • Method Details

    • onClick

      public void onClick(ClickData data)
      Description copied from class: GUIButton
      Is called when the player clicks on the Button no matter how.
      Specified by:
      onClick in class GUIButton
      Parameters:
      data - The ClickData
    • onSubmit

      public abstract void onSubmit(ClickData data)
      Is called on submit
      Parameters:
      data - The ClickData of the click