Class ListMask

java.lang.Object
io.github.projectunified.craftux.mask.MultiMask<Mask>
io.github.projectunified.craftux.mask.ListMask
All Implemented Interfaces:
Element, Mask

public class ListMask extends MultiMask<Mask>
The mask with a list of child masks
  • Constructor Details

    • ListMask

      public ListMask()
  • Method Details

    • apply

      @Nullable public @Nullable Map<Position,Consumer<ActionItem>> apply(@NotNull @NotNull UUID uuid)
      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)