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

Allow custom Abstraction implementation. #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fox2Code
Copy link

@Fox2Code Fox2Code commented Mar 3, 2025

This is the first of 2 PRs, this one allows custom MixinExtras implementation classes.

Additionally, it can be used by compatibility layers like KiltMC to set an already existing backend:
System.setProperty("mixinconstraints.abstraction", "com.moulberry.mixinconstraints.FabricAbstractionsImpl")
(KitlMC is a mod to load forge mods on Fabric, so it would make MixinConstraints not pick the forge backend on Fabric)

I also had to deprecate getLoader() as now custom mod loaders can be used, this APIs make a lot less sense.
I added getLoaderName() API as a replacement for the getLoader() API.

Close: #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom API for loading in a custom environment.
1 participant