Skip to content
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

Any ways to use this Mixin system in a Non-Minecraft related Project? #2

Open
kingdevnl opened this issue Oct 23, 2017 · 2 comments
Open
Assignees

Comments

@kingdevnl
Copy link

Any ways to use this Mixin system in a Non-Minecraft related Project?
(Using a Javaagent)

@LunNova
Copy link
Member

LunNova commented Oct 23, 2017

Mixin isn't really ready for production use yet. Some functionality isn't implemented and it's not well documented. It doesn't have a built in java agent implementation to make this easy, so you would have to write your own.

In your java agent, set up a MixinApplicator, and call MixinApplicator.getMixinTransformer() to get a transformer instance.

You can then use Instrumentation.addTransformer. In that transformer instance, call JavaTransformer.transformClass.

@kingdevnl
Copy link
Author

Any examples for how to setup the MixinApplicator?

@LunNova LunNova self-assigned this Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants