Class PaginationBar
java.lang.Object
Kyu.GuiAPI_Redone.Window.WindowImpl.MultiWindow.PaginationBar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGuiItem[]
buildPaginationBar
(MultiWindow multiWindow, int windowIndex, int maxPages, Window nextPage, Window previosPage, GUI gui) org.bukkit.inventory.ItemStack
org.bukkit.inventory.ItemStack
org.bukkit.inventory.ItemStack
setToolbarItems
(org.bukkit.inventory.ItemStack placeholderItem, org.bukkit.inventory.ItemStack pageItemForw, org.bukkit.inventory.ItemStack pageItemBackw) Set the default toolbar Items for the WindowssetToolbarItems
(org.bukkit.Material placeholderItem, org.bukkit.Material pageItem) Set the default toolbar Items for the WindowssetToolbarItems
(org.bukkit.Material placeholderItem, org.bukkit.Material pageItemForw, org.bukkit.Material pageItemBackw) Set the default toolbar Items for the WindowssetToolbarTexts
(String placeholderText, String pageForwText, String pageBackText) Set the default toolbar Item Names for the Windows Names will be color translated
-
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 ItempageItemForw
- ItemStack of the Item to go to the next pagepageItemBackw
- 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 ItempageItemForw
- Material of the Item to go to the next pagepageItemBackw
- 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 ItempageItem
- 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 itemspageForwText
- Text for the NextPage Item, supports %page for Number of the next Page and %max for the maximum number of pagespageBackText
- 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
- Returns:
- The Item Name for the placeholder Item
-
getPageForwText
- Returns:
- The Item Name for the next Page Item
-
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
-