Interface PagedGui.Builder<C>

Type Parameters:
C - The content type.
All Superinterfaces:
Cloneable, Gui.Builder<PagedGui<C>,PagedGui.Builder<C>>
All Known Implementing Classes:
AbstractPagedGui.AbstractBuilder
Enclosing interface:
PagedGui<C>

public static interface PagedGui.Builder<C> extends Gui.Builder<PagedGui<C>,PagedGui.Builder<C>>
A PagedGui builder.
  • Method Details

    • setContent

      @Contract("_ -> this") @NotNull @NotNull PagedGui.Builder<C> setContent(@NotNull @NotNull List<@NotNull C> content)
      Sets the content of the PagedGui for all pages.
      Parameters:
      content - The content to set.
      Returns:
      This Gui Builder.
    • addContent

      @Contract("_ -> this") @NotNull @NotNull PagedGui.Builder<C> addContent(@NotNull C content)
      Adds content to the PagedGui.
      Parameters:
      content - The content to add.
      Returns:
      This Gui Builder.
    • setPageChangeHandlers

      @Contract("_ -> this") @NotNull @NotNull PagedGui.Builder<C> setPageChangeHandlers(@NotNull @NotNull List<@NotNull BiConsumer<Integer,Integer>> handlers)
      Sets the page change handlers of the PagedGui.
      Parameters:
      handlers - The page change handlers to set.
      Returns:
      This Gui Builder.
    • addPageChangeHandler

      @Contract("_ -> this") @NotNull @NotNull PagedGui.Builder<C> addPageChangeHandler(@NotNull @NotNull BiConsumer<Integer,Integer> handler)
      Adds a page change handler to the PagedGui.
      Parameters:
      handler - The page change handler to add.
      Returns:
      This Gui Builder.