2022-03-17 15:21:30 +01:00
|
|
|
package com.falsepattern.endlessids;
|
|
|
|
|
|
|
|
|
|
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-07-02 20:21:50 +02:00
|
|
|
|
2022-03-17 15:21:30 +01:00
|
|
|
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
|
|
|
|
|
2022-07-02 20:21:50 +02:00
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import static cpw.mods.fml.relauncher.IFMLLoadingPlugin.DependsOn;
|
|
|
|
|
import static cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
|
|
|
|
|
import static cpw.mods.fml.relauncher.IFMLLoadingPlugin.Name;
|
|
|
|
|
import static cpw.mods.fml.relauncher.IFMLLoadingPlugin.TransformerExclusions;
|
2022-06-15 22:28:46 +02:00
|
|
|
|
|
|
|
|
@MCVersion("1.7.10")
|
|
|
|
|
@Name(Tags.MODID)
|
2022-07-02 20:21:50 +02:00
|
|
|
@TransformerExclusions({"com.falsepattern.endlessids.asm"})
|
2022-06-15 22:28:46 +02:00
|
|
|
@DependsOn("falsepatternlib")
|
2022-07-02 20:21:50 +02: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-07-02 20:21:50 +02:00
|
|
|
|
2022-03-17 15:21:30 +01:00
|
|
|
public IEPlugin() {
|
|
|
|
|
super();
|
|
|
|
|
}
|
2022-07-02 20:21:50 +02:00
|
|
|
|
2022-03-17 15:21:30 +01:00
|
|
|
public String[] getASMTransformerClass() {
|
2022-07-02 20:21:50 +02:00
|
|
|
return new String[]{IETransformer.class.getName()};
|
2022-03-17 15:21:30 +01:00
|
|
|
}
|
2022-07-02 20:21:50 +02:00
|
|
|
|
2022-03-17 15:21:30 +01:00
|
|
|
public String getModContainerClass() {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2022-07-02 20:21:50 +02:00
|
|
|
|
2022-03-17 15:21:30 +01:00
|
|
|
public String getSetupClass() {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2022-07-02 20:21:50 +02:00
|
|
|
|
2022-03-17 15:21:30 +01:00
|
|
|
public void injectData(final Map<String, Object> data) {
|
|
|
|
|
IETransformer.isObfuscated = (Boolean) data.get("runtimeDeobfuscationEnabled");
|
|
|
|
|
}
|
2022-07-02 20:21:50 +02:00
|
|
|
|
2022-03-17 15:21:30 +01:00
|
|
|
public String getAccessTransformerClass() {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|