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 List<@NotNull Integer> slots) 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) Generate the buttons for the unique idGet the buttonsgetSlots()Get the slotsvoidinit()voidstop()
-
Field Details
-
slots
-
buttons
-
-
Constructor Details
-
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
-
getSlots
Get the slots- Returns:
- the slots
-
getButtons
Get the buttons- Returns:
- the buttons
-
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()
-