Applied-Energistics-2-tiler.../transformer/AppEngCore.java

106 lines
1.9 KiB
Java
Raw Normal View History

package appeng.transformer;
import java.util.Map;
import appeng.core.AEConfig;
import com.google.common.eventbus.EventBus;
import cpw.mods.fml.common.DummyModContainer;
import cpw.mods.fml.common.LoadController;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.relauncher.FMLRelaunchLog;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
2014-06-25 03:19:42 +02:00
@MCVersion()
public class AppEngCore extends DummyModContainer implements IFMLLoadingPlugin
{
public final AppEngCore instance;
protected final ModMetadata md = new ModMetadata();
public AppEngCore() {
instance = this;
FMLRelaunchLog.info( "[AppEng] Core Init" );
md.autogenerated = true;
md.credits = "AlgorithmX2";
md.modId = getModId();
md.version = getVersion();
md.name = getName();
}
@EventHandler
public void load(FMLInitializationEvent event)
{
}
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
return true;
}
@Override
public String[] getASMTransformerClass()
{
2014-05-20 16:38:29 +02:00
return new String[] { "appeng.transformer.asm.ASMIntegration" };
}
@Override
public String getModContainerClass()
{
return "appeng.transformer.AppEngCore";
}
@Override
public String getSetupClass()
{
return null;
}
@Override
public void injectData(Map<String, Object> data)
{
}
@Override
public String getModId()
{
return "AppliedEnergistics2-Core";
}
@Override
public String getName()
{
return "AppliedEnergistics2 Core";
}
@Override
public String getVersion()
{
return AEConfig.VERSION;
}
@Override
public String getDisplayVersion()
{
return getVersion();
}
public ModMetadata getMetadata()
{
return md;
}
@Override
public String getAccessTransformerClass()
{
return "appeng.transformer.asm.ASMTweaker";
}
}