Class ButtonPaginatedMask

All Implemented Interfaces:
Mask, me.hsgamer.hscore.ui.property.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.
  • Field Details

  • Constructor Details

    • ButtonPaginatedMask

      protected ButtonPaginatedMask(@NotNull @NotNull String name, @NotNull @NotNull List<@NotNull Integer> slots)
      Create a new mask
      Parameters:
      name - the name of the mask
      slots - the slots
  • Method Details

    • getSlots

      @NotNull public @NotNull List<@NotNull Integer> getSlots()
      Get the slots
      Returns:
      the slots
    • 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

      @NotNull public @NotNull Map<Integer,Button> generateButtons(@NotNull @NotNull UUID uuid)
      Description copied from interface: Mask
      Generate the buttons for the unique id
      Parameters:
      uuid - the unique id
      Returns:
      the map contains the slots and the buttons
    • stop

      public void stop()
    • getPageAmount

      public int getPageAmount(@NotNull @NotNull UUID uuid)
      Description copied from class: PaginatedMask
      Get the amount of pages for the unique id
      Specified by:
      getPageAmount in class PaginatedMask
      Parameters:
      uuid - the unique id
      Returns:
      the amount of pages