Class PaginatedMenu
java.lang.Object
me.fami6xx.rpuniverse.core.menuapi.types.Menu
me.fami6xx.rpuniverse.core.menuapi.types.PaginatedMenu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
- Direct Known Subclasses:
EasyPaginatedMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.bukkit.inventory.ItemStackprotected intprotected intprotected intFields inherited from class me.fami6xx.rpuniverse.core.menuapi.types.Menu
FILLER_GLASS, inventory, playerMenu -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the menu border to the inventory.intReturns the maximum number of items per page.intgetSlots()Returns the number of slots in the inventory.Methods inherited from class me.fami6xx.rpuniverse.core.menuapi.types.Menu
getInventory, getMenuName, getMenuTags, handleMenu, makeColoredGlass, open, setFillerGlass, setMenuItems
-
Field Details
-
page
protected int page -
maxItemsPerPage
protected int maxItemsPerPage -
index
protected int index -
BORDER_GLASS
public static final org.bukkit.inventory.ItemStack BORDER_GLASS
-
-
Constructor Details
-
Method Details
-
addMenuBorder
public void addMenuBorder()Adds the menu border to the inventory. -
getMaxItemsPerPage
public int getMaxItemsPerPage()Returns the maximum number of items per page.- Returns:
- the maximum number of items per page.
-
getSlots
public int getSlots()Returns the number of slots in the inventory.
-