All Implemented Interfaces:
Sizeable

public class PreviousPageGUIButton extends PaginatorGUIButton
A GUIButton for the PaginatorGUIPane which returns to the previous page.
  • Constructor Details

    • PreviousPageGUIButton

      public PreviousPageGUIButton(PaginatorGUIPane paginatorGUIPane, GUI gui, net.kyori.adventure.text.TextComponent title, org.bukkit.Material material)
      Creates a new PreviousPageGUIButton
      Parameters:
      paginatorGUIPane - The according Paginator
      gui - The GUI
      title - The title of the Button
      material - The Material of the Button
    • PreviousPageGUIButton

      public PreviousPageGUIButton(PaginatorGUIPane paginatorGUIPane, GUI gui, net.kyori.adventure.text.TextComponent title)
      Creates a new PreviousPageGUIButton
      Parameters:
      paginatorGUIPane - The according Paginator
      gui - The GUI
      title - The title of the Button
    • PreviousPageGUIButton

      public PreviousPageGUIButton(PaginatorGUIPane paginatorGUIPane, GUI gui)
      Creates a new PreviousPageGUIButton
      Parameters:
      paginatorGUIPane - The according Paginator
      gui - The GUI
  • Method Details

    • onClick

      public void onClick(ClickData data)
      Description copied from class: GUIButton
      Is called when the player clicks on the Button no matter how.
      Specified by:
      onClick in class GUIButton
      Parameters:
      data - The ClickData