Class ButtonPaginatedMask

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

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

    • ButtonPaginatedMask

      protected ButtonPaginatedMask(@NotNull @NotNull String name, @NotNull @NotNull MaskSlot maskSlot)
      Create a new mask
      Parameters:
      name - the name of the mask
      maskSlot - the mask slot
  • Method Details

    • getMaskSlot

      @NotNull public @NotNull MaskSlot getMaskSlot()
      Get the mask slot
      Returns:
      the mask slot
    • getButtons

      @NotNull public abstract @NotNull List<@NotNull Button> getButtons(@NotNull @NotNull UUID uuid)
      Get the buttons for the unique id
      Parameters:
      uuid - the unique id
      Returns:
      the buttons
    • generateButtons

      protected Optional<Map<@NotNull Integer,@NotNull 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