Applied-Energistics-2-tiler.../src/main/java/appeng/transformer/AppEngCore.java

128 lines
2.9 KiB
Java
Raw Normal View History

2014-11-14 12:02:52 +01:00
/*
* This file is part of Applied Energistics 2.
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
*
* Applied Energistics 2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Applied Energistics 2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
*/
package appeng.transformer;
import java.util.Map;
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-12-29 21:59:05 +01:00
import appeng.core.AEConfig;
@MCVersion("1.7.10")
public class AppEngCore extends DummyModContainer implements IFMLLoadingPlugin
{
public final AppEngCore instance;
protected final ModMetadata md = new ModMetadata();
public AppEngCore() {
2014-12-29 15:13:47 +01:00
this.instance = this;
FMLRelaunchLog.info( "[AppEng] Core Init" );
2014-12-29 15:13:47 +01:00
this.md.autogenerated = false;
this.md.authorList.add( "AlgorithmX2" );
this.md.credits = "AlgorithmX2";
this.md.modId = this.getModId();
this.md.version = this.getVersion();
this.md.name = this.getName();
this.md.url = "http://ae2.ae-mod.info";
this.md.description = "Embedded Coremod for Applied Energistics 2";
}
@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()
{
2014-12-29 15:13:47 +01:00
return this.getVersion();
}
@Override
public ModMetadata getMetadata()
{
2014-12-29 15:13:47 +01:00
return this.md;
}
@Override
public String getAccessTransformerClass()
{
return "appeng.transformer.asm.ASMTweaker";
}
}