Here's a Yamaha XJ6N motorcycle:
But I was wondering what this component here was??
Motor Vehicle Maintenance & Repair Stack Exchange is a question and answer site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles. It only takes a minute to sign up.Sign up to join this community
According to this https://www.yamahamotorcyclespares.co.uk/genuineparts/13208/8/yamaha%20xj6n/oil%20cleaner?uid=0 parts manual (image not copied to protect copyright) its the oil cooler assembly.
Its also shown on the cooling images but not numbered https://www.yamahamotorcyclespares.co.uk/genuineparts/13208/6/yamaha%20xj6n/radiator%20&%20hose?uID=0.
The way I found this was to search on google (other search engines are available) for "Yamaha XJ6N online parts catalogue". Once I had a search result set it was just a case for looking for components in roughly the same area and same shape as the one you are asking about.