Class ButtonPaginatedMask
java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.BaseMask
me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
me.hsgamer.hscore.minecraft.gui.mask.impl.ButtonPaginatedMask
- All Implemented Interfaces:
Mask,me.hsgamer.hscore.ui.property.Initializable
- Direct Known Subclasses:
StaticButtonPaginatedMask
The button paginated mask, those with a long list of
Button divided into pages.-
Field Summary
Fields inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
cycle, pageNumberMap -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedButtonPaginatedMask(@NotNull String name, @NotNull MaskSlot maskSlot) Create a new mask -
Method Summary
Modifier and TypeMethodDescriptiongenerateButtons(@NotNull UUID uuid, @NotNull InventorySize inventorySize, int pageNumber) Generate the buttons for the unique idgetButtons(@NotNull UUID uuid) Get the buttons for the unique id@NotNull MaskSlotGet the mask slotvoidstop()Methods inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
generateButtons, getAndSetExactPage, getExactPage, getPage, isCycle, nextPage, previousPage, setCycle, setPageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.ui.property.Initializable
init
-
Constructor Details
-
ButtonPaginatedMask
Create a new mask- Parameters:
name- the name of the maskmaskSlot- the mask slot
-
-
Method Details
-
getMaskSlot
Get the mask slot- Returns:
- the mask slot
-
getButtons
Get the buttons for the unique id- Parameters:
uuid- the unique id- Returns:
- the buttons
-
generateButtons
protected Optional<Map<@NotNull Integer,@NotNull Button>> generateButtons(@NotNull @NotNull UUID uuid, @NotNull @NotNull InventorySize inventorySize, int pageNumber) Description copied from class:PaginatedMaskGenerate the buttons for the unique id- Specified by:
generateButtonsin classPaginatedMask- Parameters:
uuid- the unique idinventorySize- the size of the inventorypageNumber- the page number- Returns:
- the map contains the slots and the buttons
- See Also:
-
stop
public void stop()
-