- Compatible API Versions
 - 1.0
 
- Sourcecode
 - https://github.com/Ragnok123/MenuAPI
 
PLANS:
FORMS MENU (NOT FINISHED)
To create new inventory menu, you should do this:
 
	
	
	
		
 Every menu has a category. It is made to avoid bilion times changing menu content;
To create new category, you can simply do this:
	
	
	
		
 You can add items to your category:
 
	
	
	
		
 *Position* - It is slot. You're writing it cause it's required
*ItemData* - Object, created for managing items. In future it planned to use nbt things and more
You can also manage item clicking:
 
	
	
	
		
 After you've added all items, dont forget add reference to menu:
 
	
	
	
		
 You can set category as main category (when menu opens):
	
	
	
		
 Or just add as another category:
	
	
	
		
 Making custom text is also easy:
 
	
	
	
		
 If you want only read menu without transactions, just make:
	
	
	
		
 To send menu, just use 
	
	
	
		
 Or force close with
 
	
	
	
		
 And finally, register new menu:
 
	
	
	
		
					
					
	
					
					
					FORMS MENU (NOT FINISHED)
To create new inventory menu, you should do this:
		Code:
	
	InventoryMenu menu = new InventoryMenu();
	To create new category, you can simply do this:
		Code:
	
	InventoryCategory category = new InventoryCategory();
	
		Code:
	
	java
category.addElement(int position, ItemData data);
	*ItemData* - Object, created for managing items. In future it planned to use nbt things and more
You can also manage item clicking:
		Code:
	
	  category.addElement(int position, ItemData data, new ItemClick(){
      @Override
       public void onClick(Player player, Item item){
           player.sendMessage("Item clicked");
       }
  });
	
		Code:
	
	category.setMenu(menu);
	
		Code:
	
	menu.setMainCategory(category);
	
		Code:
	
	menu.addCategory(String id, category);
	
		Code:
	
	menu.setName("§l§eMenu");
	
		Code:
	
	menu.setOnlyRead(true);
	
		Code:
	
	menu.show(player);
	
		Code:
	
	menu.forceDestroy(player);
	
		Code:
	
	InventoryMenuHandler.registerNewMenu(String id, menu);