public class MenuRegister
extends java.lang.Object
WauzInventory
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,WauzInventory> |
inventoryMap
A map of all registered inventory menus.
|
Constructor and Description |
---|
MenuRegister() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getAllInventoryIds() |
static WauzInventory |
getInventory(java.lang.String inventoryId)
Gets an inventory menu for given id from the map.
|
static void |
registerInventory(WauzInventory inventory)
Registers an inventory menu.
|
private static java.util.Map<java.lang.String,WauzInventory> inventoryMap
public static WauzInventory getInventory(java.lang.String inventoryId)
inventoryId
- The id of the inventory menu.public static java.util.List<java.lang.String> getAllInventoryIds()
public static void registerInventory(WauzInventory inventory)
inventory
- The inventory menu to register.