Interface PagedMenu.Settings

Enclosing class:
PagedMenu

public static interface PagedMenu.Settings
Settings for the paged menu.
  • Method Details

    • getPreviousButton

      @NotNull @NotNull MenuButton getPreviousButton()
      The previous page button. The provided consumer will be ignored.
      Returns:
      The previous page button
    • getDummyPreviousButton

      @NotNull @NotNull MenuButton getDummyPreviousButton()
      The previous page button if there are no more pages to go back to. The provided consumer will be ignored.
      Returns:
      The dummy previous page button
    • getNextButton

      @NotNull @NotNull MenuButton getNextButton()
      The next page button. The provided consumer will be ignored.
      Returns:
      The next page button
    • getDummyNextButton

      @NotNull @NotNull MenuButton getDummyNextButton()
      The next page button if there are no more pages to go to. The provided consumer will be ignored.
      Returns:
      The dummy next page button
    • getAvailableSlots

      @NotNull @NotNull List<Integer> getAvailableSlots()
      The list of slots that buttons can use. If none of the slots in this list are empty, a new page will be created. Otherwise, the first available slot will be used. For a simple range of integers, use IntStream.range(int, int).
      Returns:
      The list of slots that buttons can use
    • fromConfig

      @NotNull static @NotNull PagedMenu.Settings fromConfig(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
      Gets the paged menu settings from a configuration section.
      Parameters:
      section - The configuration section to get the settings from
      Returns:
      The paged settings as defined in the configuration section