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, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.craftux.common.Mask
getActionMap
-
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:MaskGet 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)
-