2014-02-16 19:41:45 +01:00
|
|
|
package appeng.integration.modules;
|
2014-02-15 07:40:02 +01:00
|
|
|
|
2014-02-18 18:43:02 +01:00
|
|
|
import appeng.integration.BaseModule;
|
2014-02-15 07:40:02 +01:00
|
|
|
import appeng.integration.IIntegrationModule;
|
|
|
|
import appeng.integration.abstraction.IMJ;
|
2014-02-16 19:41:45 +01:00
|
|
|
import appeng.integration.abstraction.helpers.BaseMJperdition;
|
|
|
|
import appeng.integration.modules.helpers.MJPerdition;
|
2014-02-15 07:40:02 +01:00
|
|
|
import appeng.tile.powersink.BuildCraft;
|
|
|
|
import buildcraft.api.power.IPowerReceptor;
|
|
|
|
|
2014-02-18 18:43:02 +01:00
|
|
|
public class MJ extends BaseModule implements IIntegrationModule, IMJ
|
2014-02-15 07:40:02 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
public static MJ instance;
|
|
|
|
|
|
|
|
@Override
|
2014-02-16 19:41:45 +01:00
|
|
|
public BaseMJperdition createPerdition(BuildCraft buildCraft)
|
2014-02-15 07:40:02 +01:00
|
|
|
{
|
|
|
|
if ( buildCraft instanceof IPowerReceptor )
|
2014-02-16 19:41:45 +01:00
|
|
|
return new MJPerdition( buildCraft );
|
2014-02-15 07:40:02 +01:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void Init() throws Throwable
|
|
|
|
{
|
2014-02-18 18:43:02 +01:00
|
|
|
TestClass(MJPerdition.class);
|
2014-02-15 07:40:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void PostInit() throws Throwable
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|