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,me.hsgamer.hscore.ui.property.Initializable
The
ButtonPaginatedMask with the static list of buttons-
Field Summary
FieldsFields inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
cycle, pageNumberMap -
Constructor Summary
ConstructorsConstructorDescriptionStaticButtonPaginatedMask(@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 idvoidinit()voidstop()Methods inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.ButtonPaginatedMask
generateButtons, getMaskSlotMethods 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:ButtonPaginatedMaskGet the buttons for the unique id- Specified by:
getButtonsin classButtonPaginatedMask- Parameters:
uuid- the unique id- Returns:
- the buttons
-
init
public void init() -
stop
public void stop()- Specified by:
stopin interfaceme.hsgamer.hscore.ui.property.Initializable- Overrides:
stopin classButtonPaginatedMask
-