Interface Mask
- All Known Implementing Classes:
AnimatedMask,ButtonPaginatedMask,HybridMask,ListMask,MaskPaginatedMask,MultiMask,MultiPositionMask,OneTimeAnimatedMask,PaginatedMask,PlaceholderMask,PredicateMask,SequencePaginatedMask,SimpleButtonMask,SingleMask
public interface Mask
The mask that maps positions to action item consumers
-
Method Summary
Modifier and TypeMethodDescription@Nullable Map<Position, Consumer<ActionItem>> Get a map of positions to action item consumersdefault @Nullable Map<Position, ActionItem> getActionMap(UUID uuid) Get a map of positions to action items
-
Method Details
-
apply
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)
-
getActionMap
Get a map of positions to action items- 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)
-