blob: 12426715ee03d4ff4edc6c9cc40f9b4731166bb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
package me.djtheredstoner.perspectivemod.forge;
import net.minecraftforge.common.ForgeVersion;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
import org.spongepowered.asm.launch.MixinBootstrap;
import org.spongepowered.asm.mixin.Mixins;
import java.util.Map;
// ONLY needed in development environment, the mixin tweaker handles this in prod.
@IFMLLoadingPlugin.MCVersion(ForgeVersion.mcVersion)
public class PerspectiveModLoadingPlugin implements IFMLLoadingPlugin {
public PerspectiveModLoadingPlugin() {
MixinBootstrap.init();
Mixins.addConfiguration("mixins.djperspectivemod.json");
}
@Override
public String[] getASMTransformerClass() {
return new String[0];
}
@Override
public String getModContainerClass() {
return null;
}
@Override
public String getSetupClass() {
return null;
}
@Override
public void injectData(Map<String, Object> data) {
}
@Override
public String getAccessTransformerClass() {
return null;
}
}
|