neoforged / Documentation

The repository containing Neo's documentation
MIT License
23 stars 36 forks source link

Add a detailed Mixin tutorial in advanced area. #10

Open Jissee opened 10 months ago

Jissee commented 10 months ago

I wrote a Mixin tutorial. I also warn the readers that they should use Events rather than Mixin for safety.

Jissee commented 10 months ago

Thanks for your recommendations. I have improved and changed most of the pages I uploaded. Please review them and contact me if there are any mistakes.

Jissee commented 10 months ago

Thanks for your concern and recommendations, which are really helpful for me. I am only a college student and a beginner at Minecraft modding actually. I wrote those documents based on my development experience. Sorry for my incomplete document contribution. I am a little tired these days and I am afraid that I cannot answer some of your questions. You can close this PR if this bothers you and I will continue to study in the future. Again, thanks for your patience.

ChampionAsh5357 commented 10 months ago

It's fine. If you don't have the time to contribute or address the issues, then you're welcome to leave it alone or close at a later point in time depending on if you ever wish to come back to this.

TelepathicGrunt commented 1 month ago

With NeoForge packaging Fabric Mixins and Mixin Extras, the buildscript stuff isn't that much needed anymore. I guess we could still have a document explaining when one should and should use mixins and state some best practices. Sorta like this gist that says some official resources at top and walks through how to write mixins and what kinds to use and pitfalls to avoid. The part about how to dump mixin'ed classes to see their modifications would be an extremely useful thing for players and modders to know about https://gist.github.com/TelepathicGrunt/3784f8a8b317bac11039474012de5fb4