| Package | Description |
|---|---|
| io.mazenmc.menuapi | |
| io.mazenmc.menuapi.menu |
| Modifier and Type | Method and Description |
|---|---|
static Menu |
MenuFactory.createMenu(String name,
int size)
Creates a menu with the inputted specifications
|
static Menu |
MenuFactory.createMenu(String name,
int size,
Menu parent)
Creates a menu with the inputted specifications
|
| Modifier and Type | Method and Description |
|---|---|
static Menu |
MenuFactory.createMenu(String name,
int size,
Menu parent)
Creates a menu with the inputted specifications
|
static MultiMenu |
MenuFactory.createMultiMenu(String name,
int size,
int pages,
Menu parent) |
static MultiMenu |
MenuFactory.createMultiMenu(String name,
int size,
Menu parent) |
static void |
MenuFactory.dispose(Menu menu)
Disposes of the menu, reduces retention on the menu
|
| Modifier and Type | Class and Description |
|---|---|
class |
MultiMenu
Menu with multiple sub menus, or "pages",
This class extends Menu, moreover this instance is the main page or menu.
|
| Modifier and Type | Field and Description |
|---|---|
protected Menu[] |
MultiMenu.menus |
| Modifier and Type | Method and Description |
|---|---|
static Menu |
Menu.createMenu(String name,
int size) |
Menu |
MultiMenu.menuAt(int index) |
Menu |
Menu.setItem(int x,
int z,
Item item)
Sets the item at the specified coordinates, where x is on the horizontal axis and z is on the vertical axis.
|
Menu |
Menu.setItem(int index,
Item item)
Sets the item at the specified index
|
Menu |
Menu.setParent(Menu parent)
Sets the parent of the menu, used when the player exits the menu
|
| Modifier and Type | Method and Description |
|---|---|
void |
MultiMenu.setMenu(int index,
Menu menu)
Set menu at the specified index, can be over the size.
|
Menu |
Menu.setParent(Menu parent)
Sets the parent of the menu, used when the player exits the menu
|
Copyright © 2015. All rights reserved.