Class SingleMask
java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.BaseMask
me.hsgamer.hscore.minecraft.gui.mask.impl.SingleMask
- All Implemented Interfaces:
Mask
,Initializable
The simple mask with a single
Button
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSingleMask
(@NotNull String name, int slot, @NotNull Button button) Create a new mask -
Method Summary
Modifier and TypeMethodDescriptiongenerateButtons
(@NotNull UUID uuid, @NotNull InventorySize inventorySize) Generate the buttons for the unique idvoid
init()
Initialize some properties for the objectvoid
stop()
Stop the object
-
Field Details
-
slot
protected final int slot -
button
-
-
Constructor Details
-
SingleMask
Create a new mask- Parameters:
name
- the name of the maskslot
- the slotbutton
- the button
-
-
Method Details
-
generateButtons
public Optional<Map<Integer,Button>> generateButtons(@NotNull @NotNull UUID uuid, @NotNull @NotNull InventorySize inventorySize) Description copied from interface:Mask
Generate the buttons for the unique id- Parameters:
uuid
- the unique idinventorySize
- the size of the inventory- Returns:
- the map contains the slots and the buttons
-
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
-