Skip to main content

Open Inventories

Inventory Manager​

You can access it using:

InventoryManager manager = armorStandApi.getInventoryManager();

Available Methods​

openToolsMenu(Player player, ArmorStand armorStand)​

Opens the Tools Menu

try {
armorStandApi.getInventoryManager().openToolsMenu(player, armorStand);
} catch (InventoryException e) {
e.printStackTrace();
}

openActionsMenu(Player player, ArmorStand armorStand)​

Opens the Actions Menu

try {
armorStandApi.getInventoryManager().openActionsMenu(player, armorStand);
} catch (InventoryException e) {
e.printStackTrace();
}

openEditMenu(Player player, ArmorStand armorStand)​

Opens the Edit Menu

try {
armorStandApi.getInventoryManager().openEditMenu(player, armorStand);
} catch (InventoryException e) {
e.printStackTrace();
}

openOptionsMenu(Player player, ArmorStand armorStand, boolean isFromSettings)​

Opens the Options Menu

try {
armorStandApi.getInventoryManager().openOptionsMenu(player, armorStand, false);
} catch (InventoryException e) {
e.printStackTrace();
}

openSaveMenu(Player player, ArmorStand armorStand)​

Opens the Save Menu

try {
armorStandApi.getInventoryManager().openSaveMenu(player, armorStand);
} catch (InventoryException e) {
e.printStackTrace();
}