-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconsider package structure #550
Comments
I agree that using the Yarn's package structure is less good than using Mojang's one because of the recent... Codecify? of minecraft code. But I do not think that following exactly the same package structure as Mojang is a good idea. IMO, Quilt Mappings should be able to change some parts of the Mojang package structure to use it's own conventions. As for the the public reception, I do think that this change should be applied for Quilt Mappings 2.0. People currently knows that this version will bring a lot of changes to these mappings, so I think that it's the best version to consider a package structure refactor. |
To be perfectly honest, as a modder I do not look at package names much. That said, I believe following mojang's package structure would be a good idea for at least 2 reasons :
For consistency, I would say that packages should be renamed when they are about a concept that has been remapped (e.g. |
Having the same package structure as Mojang also heavily simplifies the usage of QM on NeoForge for those who dare want to do that as NeoForge is using Mojmap as the runtime mapping meaning there's no visibility remap step. |
I support this move, just wanted to chime in with a few points:
|
I mostly like the idea, i would need to see the mappings with the new structure to really get a feel for it. |
so. plan time
|
We will definitely want a plugin that auto-moves classes to the correct package. As for already named classes, it should be fairly simple and probably not need a full plugin, but definitely a bunch of code to read the files and move them to the correct directories. Since it's such a one-off thing I don't think it'll be that useful to keep around. |
update since I'm incredibly wise. instead of building new enigma APIs, we simply automatically correct packages on everything using the power of dynamic name proposal. |
For quite a long time QM has followed Yarn's package structure and came up with its own rules for the package structure.
Lately I've been looking a bit more closely at the Mojang mappings, and given the recent refactors on Mojang's part to increase the data-drivability of Minecraft, I'm finally starting to understand better the Mojang package structure.
So now we probably should ask ourselves, is the QM package structure still making sense given the refactors?
Advantages of using Mojang's package structure
Disadvantages of using Mojang's package structure
Unresolved Questions
The text was updated successfully, but these errors were encountered: