Skip to content
FlameyosFlow edited this page Sep 5, 2023 · 8 revisions

Menu Types

Menus have a bunch of inventory types, some lose their functionality when using Bukkit.createInventory (such as workbench so that you use player.openWorkbench(...), and that's okay)

  • CHEST (Default)
  • HOPPER
  • DISPENSER
  • WORKBENCH
  • FURNACE
  • BREWING

Menu Implementation Types

Menu:

it's a regular Inventory with many more features and faster than a normal spigot Inventory.

It's a basic menu for creating interactive menus in Spigot plugins. It allows you to add menu items, handle player interactions, display the menu to players and more.

Generally, all Menus run on only one event, this can prevent boilerplate, improve memory and performance (this is normal menus library behavior, I'm not special haha)

PaginatedMenu: it's a class that allows you to create menus with multiple pages.

It automatically handles pagination by dividing your menu items into pages based on the specified page size.

Users can navigate through the pages using navigation buttons.

It provides a convenient way to organize and display a large number of menu items in a user-friendly manner.

It's a more advanced Menu generally, it's been implemented in many popular inventory libraries, frameworks or apis, including:

  • Woody
  • Vision
  • triumph-gui
  • InventoryFramework
  • and much more.

More coming out one day (inshallah)

Clone this wiki locally