Class TrustedPlayersMenu

All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder

public class TrustedPlayersMenu extends EasyPaginatedMenu
  • Constructor Details

    • TrustedPlayersMenu

      public TrustedPlayersMenu(PlayerMenu menu, Property property)
      Constructs a new TrustedPlayersMenu.
      Parameters:
      menu - The PlayerMenu instance.
      property - The Property whose trusted players are being managed.
  • Method Details

    • getMenuName

      public String getMenuName()
      Specified by:
      getMenuName in class Menu
    • getSlots

      public int getSlots()
      Description copied from class: PaginatedMenu
      Returns the number of slots in the inventory.
      Overrides:
      getSlots in class PaginatedMenu
      Returns:
      the number of slots in the inventory.
    • getMenuTags

      public List<MenuTag> getMenuTags()
      Specified by:
      getMenuTags in class Menu
    • getItemFromIndex

      public org.bukkit.inventory.ItemStack getItemFromIndex(int index)
      Description copied from class: EasyPaginatedMenu
      Gets ItemStack you created from your collection
      Specified by:
      getItemFromIndex in class EasyPaginatedMenu
      Parameters:
      index - Index of item you want to get from collection
      Returns:
      ItemStack you create
    • getCollectionSize

      public int getCollectionSize()
      Specified by:
      getCollectionSize in class EasyPaginatedMenu
      Returns:
      Size of collection you use
    • handlePaginatedMenu

      public void handlePaginatedMenu(org.bukkit.event.inventory.InventoryClickEvent e)
      Description copied from class: EasyPaginatedMenu
      Handles click on your item
      Specified by:
      handlePaginatedMenu in class EasyPaginatedMenu
      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:
      addAdditionalItems in class EasyPaginatedMenu
    • handleMenu

      public void handleMenu(org.bukkit.event.inventory.InventoryClickEvent e)
      Override the handleMenu to include handling the Add Trusted Player button.
      Overrides:
      handleMenu in class EasyPaginatedMenu