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
FieldsFields inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
cycle, pageNumberMap -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedButtonPaginatedMask(@NotNull String name, @NotNull List<@NotNull Integer> slots) Create a new mask -
Method Summary
Modifier and TypeMethodDescriptiongenerateButtons(@NotNull UUID uuid, int size) Generate the buttons for the unique idgetButtons(@NotNull UUID uuid) Get the buttons for the unique idintgetPageAmount(@NotNull UUID uuid) Get the amount of pages for the unique idgetSlots()Get the slotsvoidstop()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
-
slots
-
-
Constructor Details
-
Method Details
-
getSlots
Get the slots- Returns:
- the slots
-
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
-
stop
public void stop() -
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
-