Class StaticButtonPaginatedMask
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
me.hsgamer.hscore.minecraft.gui.mask.impl.StaticButtonPaginatedMask
- All Implemented Interfaces:
Mask
,Initializable
The
ButtonPaginatedMask
with the static list of buttons-
Field Summary
Fields inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
cycle, pageNumberMap
-
Constructor Summary
ConstructorDescriptionStaticButtonPaginatedMask
(@NotNull String name, @NotNull MaskSlot maskSlot) Create a new mask -
Method Summary
Modifier and TypeMethodDescription<T extends Button>
StaticButtonPaginatedMaskaddButton
(@NotNull Collection<@NotNull T> buttons) Add button(s)Add button(s)getButtons
(@NotNull UUID uuid) Get the buttons for the unique idvoid
init()
Initialize some properties for the objectvoid
stop()
Stop the objectMethods inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.ButtonPaginatedMask
generateButtons, getMaskSlot
Methods inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
generateButtons, getAndSetExactPage, getExactPage, getPage, isCycle, nextPage, previousPage, setCycle, setPage
-
Field Details
-
buttons
-
-
Constructor Details
-
Method Details
-
addButton
@Contract("_ -> this") public <T extends Button> StaticButtonPaginatedMask addButton(@NotNull @NotNull Collection<@NotNull T> buttons) Add button(s)- Type Parameters:
T
- the type of the button- Parameters:
buttons
- the buttons- Returns:
- this instance
-
addButton
@Contract("_ -> this") public StaticButtonPaginatedMask addButton(@NotNull @NotNull Button... button) Add button(s)- Parameters:
button
- the button- Returns:
- this instance
-
getButtons
Description copied from class:ButtonPaginatedMask
Get the buttons for the unique id- Specified by:
getButtons
in classButtonPaginatedMask
- Parameters:
uuid
- the unique id- Returns:
- the buttons
-
init
public void init()Description copied from interface:Initializable
Initialize some properties for the object -
stop
public void stop()Description copied from interface:Initializable
Stop the object- Specified by:
stop
in interfaceInitializable
- Overrides:
stop
in classButtonPaginatedMask
-