Class MultiSlotsMask
java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.BaseMask
me.hsgamer.hscore.minecraft.gui.mask.impl.MultiSlotsMask
- All Implemented Interfaces:
Mask,me.hsgamer.hscore.ui.property.Initializable
The masks with multiple slot
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMultiSlotsMask(@NotNull String name, @NotNull MaskSlot maskSlot) Create a new mask -
Method Summary
Modifier and TypeMethodDescription<T extends Button>
MultiSlotsMaskaddButton(@NotNull Collection<@NotNull T> buttons) Add button(s)Add button(s)generateButtons(@NotNull UUID uuid, int size) Generate the buttons for the unique idGet the buttons@NotNull MaskSlotGet the mask slotvoidinit()voidstop()
-
Field Details
-
maskSlot
-
buttons
-
-
Constructor Details
-
MultiSlotsMask
Create a new mask- Parameters:
name- the name of the maskmaskSlot- the mask slot
-
-
Method Details
-
addButton
@Contract("_ -> this") public <T extends Button> MultiSlotsMask 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
Add button(s)- Parameters:
button- the button- Returns:
- this instance
-
getMaskSlot
Get the mask slot- Returns:
- the mask slot
-
getButtons
Get the buttons- 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
-
init
public void init() -
stop
public void stop()
-