Class SubmitGUIButton.AbstractBuilder<B extends SubmitGUIButton.AbstractBuilder<B,P>,P extends SubmitGUIButton>

Type Parameters:
B - The Builder that implements this one
P - The GUIButton that is built
Direct Known Subclasses:
SubmitGUIButton.Builder
Enclosing class:
SubmitGUIButton

protected abstract static class SubmitGUIButton.AbstractBuilder<B extends SubmitGUIButton.AbstractBuilder<B,P>,P extends SubmitGUIButton> extends GUIButton.AbstractBuilder<B,P>
Abstract Builder for creating SubmitGUIButton
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder(GUI gui)
      Creates a new Builder
      Parameters:
      gui - The gui this button belongs to
  • Method Details

    • submitItem

      public B submitItem(org.bukkit.inventory.ItemStack item)
      Sets the submitItem attribute
      Parameters:
      item - The item that is shown to submit
      Returns:
      Itself
    • submitDelay

      public B submitDelay(int submitDelay)
      Sets the submitDelay attribute
      Parameters:
      submitDelay - The delay after which the submit item is shown
      Returns:
      Itself
    • onSubmit

      public B onSubmit(Consumer<ClickData> onSubmit)
      Sets the onSubmit attribute
      Parameters:
      onSubmit - Is called when somebody successfully submits
      Returns:
      Itself