Class SequencePaginatedMask

All Implemented Interfaces:
Mask, me.hsgamer.hscore.ui.property.Initializable
Direct Known Subclasses:
StaticSequencePaginatedMask

public abstract class SequencePaginatedMask extends PaginatedMask
A button paginated mask, where each Button is a page
  • Field Details

    • maskSlot

      protected final MaskSlot maskSlot
  • Constructor Details

    • SequencePaginatedMask

      protected SequencePaginatedMask(@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(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, int size)
      Description copied from interface: Mask
      Generate the buttons for the unique id
      Parameters:
      uuid - the unique id
      size - the size of the inventory
      Returns:
      the map contains the slots and the buttons
    • 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
    • stop

      public void stop()