Class PlaceholderMask
java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.BaseMask
me.hsgamer.hscore.minecraft.gui.mask.impl.PlaceholderMask
- All Implemented Interfaces:
Mask,me.hsgamer.hscore.ui.property.Initializable
The placeholder mask
Used for per-user masks
Used for per-user masks
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateButtons(@NotNull UUID uuid) Generate the buttons for the unique id@NotNull MaskGet the default mask@Nullable MaskGet the mask for the unique idGet the user-mask mapvoidinit()setDefaultMask(@NotNull Mask defaultMask) Set the default masksetInitDefaultMask(boolean initDefaultMask) Should the default mask be initialized?voidSet the mask for the unique idvoidstop()
-
Field Details
-
userMasks
-
defaultMask
-
initDefaultMask
protected boolean initDefaultMask
-
-
Constructor Details
-
PlaceholderMask
Create a new mask- Parameters:
name- the name of the mask
-
-
Method Details
-
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() -
setMask
Set the mask for the unique id- Parameters:
uuid- the unique idmask- the mask
-
getMask
Get the mask for the unique id- Parameters:
uuid- the unique id- Returns:
- the mask
-
getDefaultMask
Get the default mask- Returns:
- the default mask
-
setDefaultMask
Set the default mask- Parameters:
defaultMask- the default mask- Returns:
- this instance
-
setInitDefaultMask
Should the default mask be initialized?- Parameters:
initDefaultMask- true if yes- Returns:
- this instance
-
getUserMasks
Get the user-mask map- Returns:
- the user-mask map
-