public static int getCustomBlockAmount(ItemStack item)
	{
		if ((item == null) || (!item.hasItemMeta()))
			return -1;
		ItemMeta meta = item.getItemMeta();
		if ((meta == null) || (!meta.hasDisplayName()))
			return -1;
		String title = meta.getDisplayName();
		if ((title == null) || (!title.contains(" x ")))
			return -1;
		item.setAmount(1);
		int amount = Integer.parseInt(title.substring(title.indexOf(" x ") + 3));
		return amount;
	}