@Override
	public boolean useItem(Player player, int type)
	{
		Block block = Block.blocks[type];
		if(block == Block.RED_MUSHROOM && minecraft.player.inventory.removeResource(type))
		{
			player.hurt(null, 3);

			return true;
		} else if(block == Block.BROWN_MUSHROOM && minecraft.player.inventory.removeResource(type)) {
			player.heal(5);

			return true;
		} else {
			return false;
		}
	}