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,me.hsgamer.hscore.ui.property.Initializable
- Direct Known Subclasses:
StaticSequencePaginatedMask
A button paginated mask, where each
Button is a page-
Field Summary
FieldsFields inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
cycle, pageNumberMap -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSequencePaginatedMask(@NotNull String name, @NotNull MaskSlot maskSlot) Create a new mask -
Method Summary
Modifier and TypeMethodDescriptiongenerateButtons(@NotNull UUID uuid, int size) Generate the buttons for the unique idgetButtons(UUID uuid) Get the buttons for the unique id@NotNull MaskSlotGet the mask slotintgetPageAmount(@NotNull UUID uuid) Get the amount of pages for the unique idvoidstop()Methods inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
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
-
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
Description copied from interface:MaskGenerate the buttons for the unique id- Parameters:
uuid- the unique idsize- the size of the inventory- Returns:
- the map contains the slots and the buttons
-
getPageAmount
Description copied from class:PaginatedMaskGet the amount of pages for the unique id- Specified by:
getPageAmountin classPaginatedMask- Parameters:
uuid- the unique id- Returns:
- the amount of pages
-
stop
public void stop()
-