Interface NextButton
- All Superinterfaces:
Button,PerformButton,PermissibleButton,PlaceholderButton,SlotButton
Represents a button within a user interface in a Minecraft plugin that allows the player
to navigate to the next page of an inventory. This interface extends the basic functionality
of a Button to specifically handle pagination within inventory GUIs.
The NextButton is designed to facilitate navigation in paginated inventories where content exceeds the space available on a single inventory screen. Its behavior is inherently linked to the structure of the inventory it is part of, automatically determining if a subsequent page is available and enabling the player to move forward in the pagination sequence.
Implementations of this interface should handle cases where the current page is the last page of the inventory. In such scenarios, the NextButton can either become inactive, disappear, or be replaced with an alternative element defined by the "else" condition in the implementation, ensuring a seamless and intuitive user experience.
-
Method Summary
Methods inherited from interface fr.maxlego08.menu.api.button.Button
buildDisplayName, buildLore, closeInventory, getActions, getClickRequirements, getCustomItemStack, getData, getItemStack, getMessages, getName, getOpenLink, getOptions, getPlayerHead, getRealSlot, getSlot, getSound, getViewRequirement, hasCustomRender, hasSpecialRender, isClickable, isPermanent, isRefreshOnClick, isUpdated, isUseCache, onBackClick, onClick, onDrag, onInventoryClick, onInventoryClose, onInventoryOpen, onLeftClick, onMiddleClick, onRender, onRightClick, updateOnClickMethods inherited from interface fr.maxlego08.menu.api.button.PerformButton
execute, getCommands, getConsoleCommands, getConsoleLeftCommands, getConsolePermission, getConsolePermissionCommands, getConsoleRightCommandsMethods inherited from interface fr.maxlego08.menu.api.button.PermissibleButton
checkPermission, getElseButton, getMasterParentButton, getOrPermission, getParentButton, getPermissions, hasElseButton, hasPermissionMethods inherited from interface fr.maxlego08.menu.api.button.PlaceholderButton
getPlaceholders, hasPlaceHolderMethods inherited from interface fr.maxlego08.menu.api.button.SlotButton
getSlots