Class MaskPaginatedMask

java.lang.Object
io.github.projectunified.craftux.mask.PaginatedMask
io.github.projectunified.craftux.mask.MaskPaginatedMask
All Implemented Interfaces:
Element, Mask

public abstract class MaskPaginatedMask extends PaginatedMask
The mask paginated mask, those with a long list of masks divided into pages.
  • Constructor Details

    • MaskPaginatedMask

      public MaskPaginatedMask()
  • Method Details

    • getMasks

      @NotNull public abstract @NotNull List<Mask> getMasks(@NotNull @NotNull UUID uuid)
      Get the masks for the unique id
      Parameters:
      uuid - the unique id
      Returns:
      the masks
    • getItemMap

      @Nullable protected @Nullable Map<Position,Consumer<ActionItem>> getItemMap(@NotNull @NotNull UUID uuid, int pageNumber)
      Description copied from class: PaginatedMask
      Generate the item map for the unique id
      Specified by:
      getItemMap in class PaginatedMask
      Parameters:
      uuid - the unique id
      pageNumber - the page number
      Returns:
      the map contains the positions and the buttons
    • stop

      public void stop()
      Description copied from interface: Element
      Stop the element. Should be called after removing from the GUI.