MenuFramework (not maintained) icon

MenuFramework (not maintained) -----

Hotbars, Anvil Menus, Villager / Trader Menus and Inventory Menus of any kind



! not a stand alone plugin !

2022-05-08-12-09-15.gif

Menu Framework


This MenuFramework library allows to simply create inventory interfaces. This includes menus in the player inventory, menus in all kinds of top inventories (Chest, Hopper, Furnace, Anvil, ...) and Trader Menus.​




Requirements:

Requirements when used with Maven:

Features
  • Every Inventory Type as TopMenu
  • Villager Menus with Trade Handlers and custom trades
  • Anvil Menus with text input handler for every letter
  • Pagination for all Menus
  • Layering BottomMenus in player inventories, automatically restore Inventory when closed
  • Hotbar Menus
  • SubMenu ParentMenu hierachy for TopMenus
  • Presets to easily style your Menus
  • ListMenus that automatically render Lists with pagination
  • Custom sidebar scoreboards
  • Custom bossbars

Checkout the README or this pom.xml and its parent pom.xml for help.


Example code for a menu to teleport to online players:
Code (Java):
        Player player = (Player ) commandSender ;
        ListMenu menu = new ListMenu ( Component. text ( "Teleport to:" ), 3 ) ;
        menu. addPreset (MenuPresets. paginationRow ( 3, 0, 1, false, Action. LEFT ) )
        for (Player target : Bukkit. getOnlinePlayers ( ) ) {
            menu. addListEntry ( Button. builder ( )
                    . withItemStack (ItemStackUtils. createCustomHead (target ) )
                    . withClickHandler ( Action. LEFT, clickContext -> {
                        player. teleport (target ) ;
                    } ) ) ;
        }
        menu. open (player ) ;
Example from my own Server, in combination with resource pack:
2022-05-05_16.41.31.png

Example of a menu from a shop plugin i currently make.
The player inventory is filled with a navigation menu that modifies the top inventory. Again, a resource pack was used.

2022-05-05_08.30.01.png

Documentation and a guide on how to install and use the framework can be found here:
https://github.com/CubBossa/MenuFramework

This is my first published resource and I appreciate feedback and advice! :D
Resource Information
Author:
----------
Total Downloads: 399
First Release: May 5, 2022
Last Update: May 15, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings