Class ListMask
java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.BaseMask
me.hsgamer.hscore.minecraft.gui.mask.impl.ListMask
- All Implemented Interfaces:
Mask,me.hsgamer.hscore.ui.property.Initializable
The mask with a list of child masks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMask(@NotNull Collection<@NotNull T> masks) Add mask(s)Add mask(s)booleanCheck if the target can view the maskgenerateButtons(@NotNull UUID uuid) Generate the buttons for the unique idgetMasks()Get the list of masksvoidinit()voidstop()
-
Constructor Details
-
ListMask
Create a new mask- Parameters:
name- the name of the mask
-
-
Method Details
-
addMask
@Contract("_ -> this") public <T extends Mask> ListMask 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
Get the list of masks- Returns:
- the masks
-
canView
Description copied from interface:MaskCheck if the target can view the mask- Parameters:
uuid- the unique id of the target- Returns:
- true if the target can view the mask
-
generateButtons
Description copied from interface:MaskGenerate the buttons for the unique id- Parameters:
uuid- the unique id- Returns:
- the map contains the slots and the buttons
-
init
public void init() -
stop
public void stop()
-