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

Add support for all mixin loaders #48

Open
wants to merge 1 commit into
base: 0.8-Refractor-&-Cleanup
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions src/main/java/dev/redstudio/fbp/asm/FBPPlugin.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package dev.redstudio.fbp.asm;

import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
import zone.rong.mixinbooter.IEarlyMixinLoader;
import org.spongepowered.asm.mixin.Mixins;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;

@IFMLLoadingPlugin.TransformerExclusions("io.redstudioragnarok.fbp.asm")
public class FBPPlugin implements IFMLLoadingPlugin, IEarlyMixinLoader {
public class FBPPlugin implements IFMLLoadingPlugin {

@Override
public String[] getASMTransformerClass() {
Expand All @@ -28,17 +25,12 @@ public String getSetupClass() {

@Override
public void injectData(final Map<String, Object> data) {

Mixins.addConfiguration("mixins.fbp.json");
}

@Override
public String getAccessTransformerClass() {
return null;
}

@Override
public List<String> getMixinConfigs() {
return Collections.singletonList("mixins.fbp.json");
}

}
Loading