WesJD / AnvilGUI

Capture user input in Minecraft through an anvil GUI in under 20 lines of code
MIT License
475 stars 113 forks source link

Mojang-mapped artifact #347

Open BoBkiNN opened 1 month ago

BoBkiNN commented 1 month ago

i want to use AnvilGUI in my mojang-mapped plugin but lib is spigot-mapped. What should i do if i dont want my plugin use spigot mappings?

0dinD commented 1 month ago

I recently wrote some documentation about this matter which is about to get merged, see #345 and the new parts I wrote. Note that if you're just using Mojang mappings with Paperweight Userdev because it's easier for development, you can still use Spigot mappings for your plugin (see the documentation I linked above).

Whether AnvilGUI should be compiled against both Spigot and Mojang mappings is something that has been discussed at length before, see:

Personally I haven't yet been convinced that the effort it would take to support both is really worth it because I haven't really seen any concrete and noteworthy benefits. But I am also not opposed to it if someone else is willing to put in that effort.


Also, there are forks of AnvilGUI which are rewritten to compile against Mojang mappings, which I was going to write about in the documentation update, but Wes asked me to remove it.

BoBkiNN commented 1 month ago

Thanks for links and also I think that one of good options (if possible) is to use gradle build system to use some sort of remapper on new versions to create both spigot and mojang artifacts, so this will add support for both new spigot and paper