public static Inventory deserialize(String s) {
		String size = s.substring(0,s.indexOf("!")-1);
		Inventory inv = Bukkit.getServer().createInventory(null, Integer.parseInt(size));
		String[] istacks = s.split("&");
		for(int i=0;i<istacks.length;i++) {
			ItemStack is = deserializeBasicSection(istacks[i]);
			if(istacks[i].contains("e#")) {
				String[] enchs = istacks[i].substring(istacks[i].indexOf("e#")).split("$");
				for(String ench : enchs) {
					String[] ed = ench.split(",");
					if(ed.length==2) {
						is.addEnchantment(Enchantment.getById(Integer.parseInt(ed[0])), Integer.parseInt(ed[1]));
					}
				}
			}
			
		}
		return inv;
	}