Class StaticButtonPaginatedMask

All Implemented Interfaces:
Mask, Initializable

public class StaticButtonPaginatedMask extends ButtonPaginatedMask
The ButtonPaginatedMask with the static list of buttons
  • Field Details

  • Constructor Details

    • StaticButtonPaginatedMask

      public StaticButtonPaginatedMask(@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

    • addButton

      @Contract("_ -> this") public <T extends Button> StaticButtonPaginatedMask addButton(@NotNull @NotNull Collection<@NotNull T> buttons)
      Add button(s)
      Type Parameters:
      T - the type of the button
      Parameters:
      buttons - the buttons
      Returns:
      this instance
    • addButton

      @Contract("_ -> this") public StaticButtonPaginatedMask addButton(@NotNull @NotNull Button... button)
      Add button(s)
      Parameters:
      button - the button
      Returns:
      this instance
    • getButtons

      @NotNull public @NotNull List<Button> getButtons(@NotNull @NotNull UUID uuid)
      Description copied from class: ButtonPaginatedMask
      Get the buttons for the unique id
      Specified by:
      getButtons in class ButtonPaginatedMask
      Parameters:
      uuid - the unique id
      Returns:
      the buttons
    • init

      public void init()
      Description copied from interface: Initializable
      Initialize some properties for the object
    • stop

      public void stop()
      Description copied from interface: Initializable
      Stop the object
      Specified by:
      stop in interface Initializable
      Overrides:
      stop in class ButtonPaginatedMask