Class ButtonMapMask
java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.BaseMask
me.hsgamer.hscore.minecraft.gui.mask.impl.ButtonMapMask
- All Implemented Interfaces:
Mask,me.hsgamer.hscore.ui.property.Initializable
The mask with a map of slot and button
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a button to the maskAdd a button to the maskgenerateButtons(@NotNull UUID uuid, int size) Generate the buttons for the unique idGet the button mapGet the buttonsvoidinit()voidstop()
-
Constructor Details
-
ButtonMapMask
Create a new mask- Parameters:
name- the name of the mask
-
-
Method Details
-
addButton
@Contract("_, _ -> this") public ButtonMapMask addButton(@NotNull @NotNull Button button, @NotNull @NotNull List<@NotNull Integer> slots) Add a button to the mask- Parameters:
button- the buttonslots- the slots- Returns:
- this instance
-
addButton
@Contract("_, _ -> this") public ButtonMapMask addButton(@NotNull @NotNull Button button, int... slots) Add a button to the mask- Parameters:
button- the buttonslots- the slots- Returns:
- this instance
-
getButtons
Get the buttons- Returns:
- the buttons
-
getButtonMap
Get the button map- Returns:
- the button map
-
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()
-