Class HybridMask
java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.BaseMask
me.hsgamer.hscore.minecraft.gui.mask.impl.HybridMask
- All Implemented Interfaces:
Mask
,Initializable
The mask that views multiple masks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Mask>
HybridMaskaddMask
(@NotNull Collection<T> masks) Add mask(s)Add mask(s)generateButtons
(@NotNull UUID uuid, @NotNull InventorySize inventorySize) Generate the buttons for the unique idgetMasks()
Get the masksvoid
init()
Initialize some properties for the objectvoid
stop()
Stop the object
-
Constructor Details
-
HybridMask
Create a new hybrid mask- Parameters:
name
- the name
-
-
Method Details
-
addMask
@Contract("_ -> this") public <T extends Mask> HybridMask addMask(@NotNull @NotNull Collection<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 masks- Returns:
- the masks
-
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
-