Interface PagedMenu.Settings
- Enclosing class:
- PagedMenu
public static interface PagedMenu.Settings
Settings for the paged menu.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PagedMenu.SettingsfromConfig(@NotNull org.bukkit.configuration.ConfigurationSection section) Gets the paged menu settings from a configuration section.The list of slots that buttons can use.@NotNull MenuButtonThe next page button if there are no more pages to go to.@NotNull MenuButtonThe previous page button if there are no more pages to go back to.@NotNull MenuButtonThe next page button.@NotNull MenuButtonThe previous page button.
-
Method Details
-
getPreviousButton
The previous page button. The provided consumer will be ignored.- Returns:
- The previous page button
-
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
The next page button. The provided consumer will be ignored.- Returns:
- The next page button
-
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
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, useIntStream.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
-