Class TrustedPlayersMenu
java.lang.Object
me.fami6xx.rpuniverse.core.menuapi.types.Menu
me.fami6xx.rpuniverse.core.menuapi.types.PaginatedMenu
me.fami6xx.rpuniverse.core.menuapi.types.EasyPaginatedMenu
me.fami6xx.rpuniverse.core.properties.menus.TrustedPlayersMenu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
-
Field Summary
Fields inherited from class me.fami6xx.rpuniverse.core.menuapi.types.PaginatedMenu
BORDER_GLASS, index, maxItemsPerPage, pageFields inherited from class me.fami6xx.rpuniverse.core.menuapi.types.Menu
FILLER_GLASS, inventory, playerMenu -
Constructor Summary
ConstructorsConstructorDescriptionTrustedPlayersMenu(PlayerMenu menu, Property property)Constructs a new TrustedPlayersMenu. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds additional items to the paginated menu, such as an Add Trusted Player button.intorg.bukkit.inventory.ItemStackgetItemFromIndex(int index)Gets ItemStack you created from your collectionintgetSlots()Returns the number of slots in the inventory.voidhandleMenu(org.bukkit.event.inventory.InventoryClickEvent e)Override the handleMenu to include handling the Add Trusted Player button.voidhandlePaginatedMenu(org.bukkit.event.inventory.InventoryClickEvent e)Handles click on your itemMethods inherited from class me.fami6xx.rpuniverse.core.menuapi.types.EasyPaginatedMenu
getSlotIndex, setMenuItemsMethods inherited from class me.fami6xx.rpuniverse.core.menuapi.types.PaginatedMenu
addMenuBorder, getMaxItemsPerPageMethods inherited from class me.fami6xx.rpuniverse.core.menuapi.types.Menu
getInventory, makeColoredGlass, open, setFillerGlass
-
Constructor Details
-
Method Details
-
getMenuName
- Specified by:
getMenuNamein classMenu
-
getSlots
public int getSlots()Description copied from class:PaginatedMenuReturns the number of slots in the inventory.- Overrides:
getSlotsin classPaginatedMenu- Returns:
- the number of slots in the inventory.
-
getMenuTags
- Specified by:
getMenuTagsin classMenu
-
getItemFromIndex
public org.bukkit.inventory.ItemStack getItemFromIndex(int index)Description copied from class:EasyPaginatedMenuGets ItemStack you created from your collection- Specified by:
getItemFromIndexin classEasyPaginatedMenu- Parameters:
index- Index of item you want to get from collection- Returns:
- ItemStack you create
-
getCollectionSize
public int getCollectionSize()- Specified by:
getCollectionSizein classEasyPaginatedMenu- Returns:
- Size of collection you use
-
handlePaginatedMenu
public void handlePaginatedMenu(org.bukkit.event.inventory.InventoryClickEvent e)Description copied from class:EasyPaginatedMenuHandles click on your item- Specified by:
handlePaginatedMenuin classEasyPaginatedMenu- Parameters:
e- Previously handled InventoryClickEvent
-
addAdditionalItems
public void addAdditionalItems()Adds additional items to the paginated menu, such as an Add Trusted Player button.- Specified by:
addAdditionalItemsin classEasyPaginatedMenu
-
handleMenu
public void handleMenu(org.bukkit.event.inventory.InventoryClickEvent e)Override the handleMenu to include handling the Add Trusted Player button.- Overrides:
handleMenuin classEasyPaginatedMenu
-