mkremins / fanciful

Fancy Bukkit message formatting
MIT License
95 stars 82 forks source link

.itemTooltip() no longer in fanciful? #79

Open Cryptite opened 8 years ago

Cryptite commented 8 years ago

Seems this has been entirely removed in 0.4.0-SNAPSHOT with no obvious replacement. Is there some new way to do this now?

mkremins commented 8 years ago

It looks like .itemTooltip(), along with .achievementTooltip() and .statisticTooltip(), was removed as part of commit https://github.com/mkremins/fanciful/commit/11a7e606650bf59351b3ebfce2da3af13b7e898b, which was intended to remove Fanciful's dependency on net.minecraft.server APIs and reflection. When I merged that commit I didn't notice that there were public API methods being silently removed with nothing to replace them – thanks for bringing that to my attention.

For the time being, I think you'll have to stick with a previous version of Fanciful if you want to use the various tooltip methods. In the near future, I'll look at the possibility of re-adding support for these methods, ideally in a way which doesn't make us dependent on net.minecraft.server all over again (although I don't know that such a way actually exists at the moment).

Cryptite commented 8 years ago

Sure thing, I can stick with 0.3.5, though I was hoping 4.0 might fix some of the issues where when a fanciful message wraps to a new line on the client, it appears to lose formatting.

MiniDigger commented 8 years ago

The line wrapping is a Mojang issue and was fixed in one of the recent releases iirc. Which mc version your client is when seeing the line wrapping issue?

snowgears commented 8 years ago

I would also appreciate a replacement for this in the latest version as this library was mainly used for this feature alone. Thanks for the great library and keep up the good work!