java.lang.Object
Kyu.GuiAPI_Redone.Window.WindowImpl.MultiWindow.PaginationBar

public class PaginationBar extends Object
  • Constructor Details

    • PaginationBar

      public PaginationBar()
  • Method Details

    • setToolbarItems

      public PaginationBar setToolbarItems(org.bukkit.inventory.ItemStack placeholderItem, org.bukkit.inventory.ItemStack pageItemForw, org.bukkit.inventory.ItemStack pageItemBackw)
      Set the default toolbar Items for the Windows
      Parameters:
      placeholderItem - ItemStack of the Placeholder Item
      pageItemForw - ItemStack of the Item to go to the next page
      pageItemBackw - ItemStack of the Item to go to the previous page
      Returns:
    • setToolbarItems

      public PaginationBar setToolbarItems(org.bukkit.Material placeholderItem, org.bukkit.Material pageItemForw, org.bukkit.Material pageItemBackw)
      Set the default toolbar Items for the Windows
      Parameters:
      placeholderItem - Material of the Placeholder Item
      pageItemForw - Material of the Item to go to the next page
      pageItemBackw - Material of the Item to go to the previous page
      Returns:
    • setToolbarItems

      public PaginationBar setToolbarItems(org.bukkit.Material placeholderItem, org.bukkit.Material pageItem)
      Set the default toolbar Items for the Windows
      Parameters:
      placeholderItem - Material of the Placeholder Item
      pageItem - Material of the Item to change Pages
    • setToolbarTexts

      public PaginationBar setToolbarTexts(String placeholderText, String pageForwText, String pageBackText)
      Set the default toolbar Item Names for the Windows Names will be color translated
      Parameters:
      placeholderText - Text for the Placeholder items
      pageForwText - Text for the NextPage Item, supports %page for Number of the next Page and %max for the maximum number of pages
      pageBackText - Text for the PreviousPage Item, supports %page for Number of the previous Page and %max for the maximum number of pages
    • buildPaginationBar

      public GuiItem[] buildPaginationBar(MultiWindow multiWindow, int windowIndex, int maxPages, Window nextPage, Window previosPage, GUI gui)
    • getPlaceholderText

      public String getPlaceholderText()
      Returns:
      The Item Name for the placeholder Item
    • getPageForwText

      public String getPageForwText()
      Returns:
      The Item Name for the next Page Item
    • getPageBackText

      public String getPageBackText()
      Returns:
      The Item Name for the previous Page Item
    • getPlaceholderItem

      public org.bukkit.inventory.ItemStack getPlaceholderItem()
      Returns:
      The ItemStack for the placeholder Item
    • getPageForwardItem

      public org.bukkit.inventory.ItemStack getPageForwardItem()
      Returns:
      The ItemStack for the Page forward Item
    • getPageBackwardItem

      public org.bukkit.inventory.ItemStack getPageBackwardItem()
      Returns:
      The ItemStack for the Page backward Item