Class MaskPaginatedMask
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.MaskPaginatedMask
- All Implemented Interfaces:
Mask
,Initializable
- Direct Known Subclasses:
StaticMaskPaginatedMask
The mask paginated mask, those with a long list of
Mask
divided into pages.-
Field Summary
Fields inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
cycle, pageNumberMap
-
Constructor Summary
ModifierConstructorDescriptionprotected
MaskPaginatedMask
(@NotNull String name) Create a new mask -
Method Summary
Modifier and TypeMethodDescriptiongenerateButtons
(@NotNull UUID uuid, @NotNull InventorySize inventorySize, int pageNumber) Generate the buttons for the unique idGet the masks for the unique idvoid
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
-
MaskPaginatedMask
Create a new mask- Parameters:
name
- the name of the mask
-
-
Method Details
-
getMasks
Get the masks for the unique id- Parameters:
uuid
- the unique id- Returns:
- the masks
-
generateButtons
public Optional<Map<Integer,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
-