Class AdvancedButtonMap
java.lang.Object
me.hsgamer.hscore.minecraft.gui.advanced.AdvancedButtonMap
- All Implemented Interfaces:
ButtonMap
,Initializable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a mask@NotNull Map<@NotNull Integer,
@NotNull DisplayButton> getButtons
(@NotNull UUID uuid, InventorySize inventorySize) Get the button map that is ready to be displayed to the unique idgetMasks()
Get all masksGet masks by name@NotNull Collection<@NotNull Mask>
Remove all masksvoid
removeMask
(@NotNull String name) Remove masks by namevoid
stop()
Stop the objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.hsgamer.hscore.ui.property.Initializable
init
-
Constructor Details
-
AdvancedButtonMap
public AdvancedButtonMap()
-
-
Method Details
-
addMask
Add a mask- Parameters:
mask
- the mask
-
removeMask
Remove masks by name- Parameters:
name
- the name of the mask
-
removeAllMasks
Remove all masks- Returns:
- the removed masks
-
getMasks
Get masks by name- Parameters:
name
- the name of the mask- Returns:
- the list of masks
-
getMasks
Get all masks- Returns:
- the list of all masks
-
stop
public void stop()Description copied from interface:Initializable
Stop the object- Specified by:
stop
in interfaceInitializable
-
getButtons
@NotNull public @NotNull Map<@NotNull Integer,@NotNull DisplayButton> getButtons(@NotNull @NotNull UUID uuid, InventorySize inventorySize) Description copied from interface:ButtonMap
Get the button map that is ready to be displayed to the unique id- Specified by:
getButtons
in interfaceButtonMap
- Parameters:
uuid
- the unique idinventorySize
- the size of the inventory- Returns:
- the button map
-