public final class MenuFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static Item |
createItem(ItemListener listener,
org.bukkit.Material material,
String name,
String... lore) |
static Item |
createItem(org.bukkit.inventory.ItemStack stack,
ItemListener listener) |
static Menu |
createMenu(String name,
int size)
Creates a menu with the inputted specifications
|
static Menu |
createMenu(String name,
int size,
Menu parent)
Creates a menu with the inputted specifications
|
static MultiMenu |
createMultiMenu(String name,
int size) |
static MultiMenu |
createMultiMenu(String name,
int size,
int pages) |
static MultiMenu |
createMultiMenu(String name,
int size,
int pages,
Menu parent) |
static MultiMenu |
createMultiMenu(String name,
int size,
Menu parent) |
static void |
dispose(Menu menu)
Disposes of the menu, reduces retention on the menu
|
public static Menu createMenu(String name, int size)
name - Name of the menusize - Size of the menupublic static Menu createMenu(String name, int size, Menu parent)
name - Name of the menusize - Size of the menuparent - The parent of this menu, displayed to the user when it exits this onepublic static MultiMenu createMultiMenu(String name, int size, int pages, Menu parent)
public static Item createItem(org.bukkit.inventory.ItemStack stack, ItemListener listener)
public static Item createItem(ItemListener listener, org.bukkit.Material material, String name, String... lore)
public static void dispose(Menu menu)
menu - The menu you wish to disposeCopyright © 2015. All rights reserved.