Class MultiPositionMask
java.lang.Object
io.github.projectunified.craftux.mask.MultiMask<Button>
io.github.projectunified.craftux.mask.MultiPositionMask
The masks with multiple positions
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionMultiPositionMask
(@NotNull Function<UUID, List<Position>> maskPositionFunction) Create a new mask -
Method Summary
Methods inherited from class io.github.projectunified.craftux.mask.MultiMask
add, add, getElements, init, requireChildElements, stop
-
Field Details
-
maskPositionFunction
-
-
Constructor Details
-
MultiPositionMask
Create a new mask- Parameters:
maskPositionFunction
- the mask position function
-
-
Method Details
-
getMaskPositionFunction
Get the mask position function- Returns:
- the mask position
-
apply
Description copied from interface:Mask
Get a map of positions to action item consumers- Parameters:
uuid
- the uuid of the player- Returns:
- the map, or null if no items should be displayed. Can return null in a conditional case (e.g. predicate mask)
-