code: public int addInventory(MalisisInventory inventory)
  	{
  		inventories.put(nexInventoryId, inventory);
  		inventory.setInventoryId(nexInventoryId);
  		inventory.addOpenedContainer(this);
  		if (isServer())
  			inventoryCaches.put(inventory, new InventoryCache(owner, inventory, windowId));
  		return nexInventoryId++;
  	}
docs: Adds the {@link MalisisInventory} to this {@link MalisisInventoryContainer}.<br>
  
  @param inventory the inventory
  @return the inventoryId for the inventory