Interface TabGui.Builder

All Superinterfaces:
Cloneable, Gui.Builder<TabGui,TabGui.Builder>
All Known Implementing Classes:
AbstractTabGui.AbstractBuilder
Enclosing interface:
TabGui

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

    • setTabs

      @Contract("_ -> this") @NotNull @NotNull TabGui.Builder setTabs(@NotNull @NotNull List<@Nullable Gui> tabs)
      Sets the tabs of the TabGui. Individual tabs can be null to disable them, but there must at least one tab.
      Parameters:
      tabs - The tabs of the TabGui.
      Returns:
      This Gui Builder.
    • addTab

      @Contract("_ -> this") @NotNull @NotNull TabGui.Builder addTab(@Nullable @Nullable Gui tab)
      Adds a tab to the TabGui. Individual tabs can be null to disable them, but there must at least one tab.
      Parameters:
      tab - The tab to add.
      Returns:
      This Gui Builder.
    • setTabChangeHandlers

      @Contract("_ -> this") @NotNull @NotNull TabGui.Builder setTabChangeHandlers(@NotNull @NotNull List<@NotNull BiConsumer<Integer,Integer>> handlers)
      Sets the tab change handlers of the TabGui.
      Parameters:
      handlers - The tab change handlers of the TabGui.
      Returns:
      This Gui Builder.
    • addTabChangeHandler

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