A Minecraft Mod I Built to Practice Mixin (Example-Wasted2)
Example-Wasted2 is a sample mod built on MinecraftMixin, meant to try out how Mixin hooks into vanilla logic. The goal is simple: get this injection approach working and see how it weaves code into actual classes.
Mixin’s approach is right up my alley. It doesn’t touch the original bytecode files; it uses annotations to weave code into the target class at compile time. Want to change a method? Write an @Inject in the corresponding Mixin. Same track as the reverse-engineering injection I usually do, except this is on the Java side with a framework backing you up, which saves a lot of the manual patch work.
The project itself didn’t go far. It’s purely a scouting product, shelved once the approach was validated. I’m keeping it as a timestamp, a note that I was messing with Mixin back then. The source is here.