Class MaskPaginatedMask

All Implemented Interfaces:
Mask, Initializable
Direct Known Subclasses:
StaticMaskPaginatedMask

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

    • MaskPaginatedMask

      protected MaskPaginatedMask(@NotNull @NotNull String name)
      Create a new mask
      Parameters:
      name - the name of the mask
  • Method Details

    • getMasks

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

      public Optional<Map<Integer,Button>> generateButtons(@NotNull @NotNull UUID uuid, @NotNull @NotNull InventorySize inventorySize, int pageNumber)
      Description copied from class: PaginatedMask
      Generate the buttons for the unique id
      Specified by:
      generateButtons in class PaginatedMask
      Parameters:
      uuid - the unique id
      inventorySize - the size of the inventory
      pageNumber - the page number
      Returns:
      the map contains the slots and the buttons
      See Also:
    • stop

      public void stop()
      Description copied from interface: Initializable
      Stop the object