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
,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
ModifierConstructorDescriptionprotected
ButtonPaginatedMask
(@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 MaskSlot
Get the mask slotvoid
stop()
Stop the objectMethods inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
generateButtons, getAndSetExactPage, getExactPage, getPage, isCycle, nextPage, previousPage, setCycle, setPage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:PaginatedMask
Generate the buttons for the unique id- Specified by:
generateButtons
in 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()Description copied from interface:Initializable
Stop the object
-