public class ItemMenu extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemMenu.Size |
| Modifier and Type | Field and Description |
|---|---|
static MenuItem |
EMPTY_SLOT_ITEM |
static MenuItem |
ERROR_SLOT_ITEM |
| Constructor and Description |
|---|
ItemMenu(String name,
ItemMenu.Size size) |
ItemMenu(String name,
ItemMenu.Size size,
ItemMenu parent) |
| Modifier and Type | Method and Description |
|---|---|
ItemMenu |
clearAllItems() |
ItemMenu |
clearItem(int position) |
void |
destroy() |
ItemMenu |
fillAroundSlots() |
ItemMenu |
fillAroundSlots(MenuItem menuItem) |
ItemMenu |
fillEmptySlots() |
ItemMenu |
fillEmptySlots(MenuItem menuItem) |
boolean |
hasParent() |
void |
onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) |
void |
onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event) |
void |
onInventoryCreativeClick(org.bukkit.event.inventory.InventoryCreativeEvent event) |
void |
open(org.bukkit.entity.Player player) |
ItemMenu |
setItem(int position,
MenuItem menuItem) |
void |
update(org.bukkit.entity.Player player) |
public static final MenuItem EMPTY_SLOT_ITEM
public static final MenuItem ERROR_SLOT_ITEM
public ItemMenu(String name, ItemMenu.Size size, ItemMenu parent)
public ItemMenu(String name, ItemMenu.Size size)
public boolean hasParent()
public ItemMenu clearItem(int position)
public ItemMenu clearAllItems()
public ItemMenu fillEmptySlots()
public ItemMenu fillAroundSlots()
public void open(org.bukkit.entity.Player player)
public void update(org.bukkit.entity.Player player)
public void onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
public void onInventoryCreativeClick(org.bukkit.event.inventory.InventoryCreativeEvent event)
public void destroy()
Copyright © 2021. All rights reserved.