2022-03-17 15:21:30 +01:00
|
|
|
package com.falsepattern.endlessids;
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import com.falsepattern.endlessids.asm.IETransformer;
|
2022-06-15 22:28:46 +02:00
|
|
|
import com.falsepattern.lib.config.ConfigException;
|
|
|
|
|
import com.falsepattern.lib.config.ConfigurationManager;
|
2022-03-17 15:21:30 +01:00
|
|
|
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
|
|
|
|
|
2022-06-15 22:28:46 +02:00
|
|
|
import static cpw.mods.fml.relauncher.IFMLLoadingPlugin.*;
|
|
|
|
|
|
|
|
|
|
@MCVersion("1.7.10")
|
|
|
|
|
@Name(Tags.MODID)
|
|
|
|
|
@TransformerExclusions({ "com.falsepattern.endlessids.asm" })
|
|
|
|
|
@DependsOn("falsepatternlib")
|
2022-03-17 15:21:30 +01:00
|
|
|
public class IEPlugin implements IFMLLoadingPlugin
|
|
|
|
|
{
|
2022-06-15 22:28:46 +02:00
|
|
|
static {
|
|
|
|
|
try {
|
|
|
|
|
ConfigurationManager.registerConfig(IEConfig.class);
|
|
|
|
|
} catch (ConfigException e) {
|
|
|
|
|
System.err.println("Failed to load EndlessIDs config. Using defaults.");
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-03-17 15:21:30 +01:00
|
|
|
public IEPlugin() {
|
|
|
|
|
super();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String[] getASMTransformerClass() {
|
|
|
|
|
return new String[] { IETransformer.class.getName() };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getModContainerClass() {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSetupClass() {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void injectData(final Map<String, Object> data) {
|
|
|
|
|
IETransformer.isObfuscated = (Boolean) data.get("runtimeDeobfuscationEnabled");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAccessTransformerClass() {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|