Class StaticMaskPaginatedMask
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.MaskPaginatedMask
me.hsgamer.hscore.minecraft.gui.mask.impl.StaticMaskPaginatedMask
- All Implemented Interfaces:
Mask
,Initializable
The
MaskPaginatedMask
with the static list of masks-
Field Summary
Fields inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
cycle, pageNumberMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Mask>
StaticMaskPaginatedMaskaddMask
(@NotNull Collection<@NotNull T> masks) Add mask(s)Add mask(s)Get the masks 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.MaskPaginatedMask
generateButtons
Methods inherited from class me.hsgamer.hscore.minecraft.gui.mask.impl.PaginatedMask
generateButtons, getAndSetExactPage, getExactPage, getPage, isCycle, nextPage, previousPage, setCycle, setPage
-
Field Details
-
masks
-
-
Constructor Details
-
StaticMaskPaginatedMask
Create a new mask- Parameters:
name
- the name of the mask
-
-
Method Details
-
addMask
@Contract("_ -> this") public <T extends Mask> StaticMaskPaginatedMask addMask(@NotNull @NotNull Collection<@NotNull T> masks) Add mask(s)- Type Parameters:
T
- the type of the mask- Parameters:
masks
- the mask- Returns:
- this instance
-
addMask
Add mask(s)- Parameters:
mask
- the mask- Returns:
- this instance
-
getMasks
Description copied from class:MaskPaginatedMask
Get the masks for the unique id- Specified by:
getMasks
in classMaskPaginatedMask
- Parameters:
uuid
- the unique id- Returns:
- the masks
-
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 classMaskPaginatedMask
-