Various Integration.
This commit is contained in:
parent
4b14fc7f10
commit
3a42c5e1e7
|
@ -2,8 +2,10 @@ package appeng.integration.modules;
|
|||
|
||||
import net.mcft.copy.betterstorage.api.ICrateStorage;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import appeng.api.AEApi;
|
||||
import appeng.integration.IIntegrationModule;
|
||||
import appeng.integration.abstraction.IBS;
|
||||
import appeng.integration.modules.helpers.BSCrateHandler;
|
||||
import appeng.integration.modules.helpers.BSCrateStorageAdaptor;
|
||||
import appeng.util.InventoryAdaptor;
|
||||
|
||||
|
@ -31,15 +33,13 @@ public class BS implements IIntegrationModule, IBS
|
|||
@Override
|
||||
public void Init()
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void PostInit()
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
AEApi.instance().registries().externalStorage().addExternalStorageInterface( new BSCrateHandler() );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ import appeng.api.storage.IMEInventory;
|
|||
import appeng.integration.IIntegrationModule;
|
||||
import appeng.integration.abstraction.IFZ;
|
||||
import appeng.integration.modules.helpers.FactorizationBarrel;
|
||||
import appeng.integration.modules.helpers.FactorizationHandler;
|
||||
import appeng.util.Platform;
|
||||
|
||||
/**
|
||||
|
@ -182,6 +183,8 @@ public class FZ implements IFZ, IIntegrationModule
|
|||
@Override
|
||||
public void PostInit()
|
||||
{
|
||||
AEApi.instance().registries().externalStorage().addExternalStorageInterface( new FactorizationHandler() );
|
||||
|
||||
// certus quartz
|
||||
grinderRecipe( AEApi.instance().materials().materialCertusQuartzCrystal.stack( 1 ), AEApi.instance().materials().materialCertusQuartzDust.stack( 1 ) );
|
||||
|
||||
|
@ -205,7 +208,8 @@ public class FZ implements IFZ, IIntegrationModule
|
|||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
throw new RuntimeException( t );
|
||||
// AELog.info( "" );
|
||||
// throw new RuntimeException( t );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,9 +4,11 @@ import gregtechmod.api.interfaces.IDigitalChest;
|
|||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import appeng.api.AEApi;
|
||||
import appeng.api.storage.IMEInventory;
|
||||
import appeng.integration.IIntegrationModule;
|
||||
import appeng.integration.abstraction.IGT;
|
||||
import appeng.integration.modules.helpers.GregTechHandler;
|
||||
import appeng.integration.modules.helpers.GregTechQuantumChest;
|
||||
import appeng.util.InventoryAdaptor;
|
||||
|
||||
|
@ -38,7 +40,7 @@ public class GT implements IGT, IIntegrationModule
|
|||
@Override
|
||||
public void PostInit()
|
||||
{
|
||||
|
||||
AEApi.instance().registries().externalStorage().addExternalStorageInterface( new GregTechHandler() );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,10 +2,12 @@ package appeng.integration.modules;
|
|||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import powercrystals.minefactoryreloaded.api.IDeepStorageUnit;
|
||||
import appeng.api.AEApi;
|
||||
import appeng.api.storage.IMEInventory;
|
||||
import appeng.integration.IIntegrationModule;
|
||||
import appeng.integration.abstraction.IMFR;
|
||||
import appeng.integration.modules.helpers.MFRDSU;
|
||||
import appeng.integration.modules.helpers.MFRDSUHandler;
|
||||
|
||||
public class MFR implements IIntegrationModule, IMFR
|
||||
{
|
||||
|
@ -21,21 +23,21 @@ public class MFR implements IIntegrationModule, IMFR
|
|||
@Override
|
||||
public boolean isDSU(TileEntity te)
|
||||
{
|
||||
if ( te instanceof IDeepStorageUnit ) return true;
|
||||
if ( te instanceof IDeepStorageUnit )
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void Init()
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void PostInit()
|
||||
{
|
||||
|
||||
AEApi.instance().registries().externalStorage().addExternalStorageInterface( new MFRDSUHandler() );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue