TooltipDataCallback to allow modders add their own tooltips to existing items
I recently was developing feature that added "sell" and "purchase" tooltips for blocks with that functionality. The problem is that these toolips were added by different mods, one for selling, one for purchasing. And to make these mods compatible i had to develop small separate library, and package it to both mods. And i haven't even tested compatibility with other mods that may change tooltips. The only tooltip related events I found are for adding text lines to tooltip and registering tooltip component. So I propose new event the Fabric API - TooltipDataCallback(ItemStack, List<TooltipData>). Also i added three example mods to showcase what this can add (Fabric discord message link)
Remvoed from last call, there are breaking changes between the two PRs, it might just be best to have one and make sure that all the behaviour is tested/defined.