Class SequencePaginatedMask
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.SequencePaginatedMask
- All Implemented Interfaces:
Mask
,Initializable
- Direct Known Subclasses:
StaticSequencePaginatedMask
A button paginated mask, where each
Button
is a page-
Field Summary
Fields inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
cycle, pageNumberMap
-
Constructor Summary
ModifierConstructorDescriptionprotected
SequencePaginatedMask
(@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
(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
-
Field Details
-
maskSlot
-
-
Constructor Details
-
SequencePaginatedMask
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
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
-