Applied-Energistics-2-tiler.../src/main/java/appeng/integration/modules/DSU.java
thatsIch 76b147fd5b Improved readability of variables
Hopefully improved semantics of variables

Fixed typos

Added hyphenations
2014-09-28 12:21:34 +02:00

43 lines
978 B
Java

package appeng.integration.modules;
import appeng.integration.modules.helpers.MinefactoryReloadedDeepStorageUnit;
import net.minecraft.tileentity.TileEntity;
import powercrystals.minefactoryreloaded.api.IDeepStorageUnit;
import appeng.api.AEApi;
import appeng.api.storage.IMEInventory;
import appeng.integration.BaseModule;
import appeng.integration.abstraction.IDSU;
import appeng.integration.modules.helpers.MFRDSUHandler;
public class DSU extends BaseModule implements IDSU
{
public static DSU instance;
@Override
public IMEInventory getDSU(TileEntity te)
{
return new MinefactoryReloadedDeepStorageUnit( te );
}
@Override
public boolean isDSU(TileEntity te)
{
if ( te instanceof IDeepStorageUnit )
return true;
return false;
}
@Override
public void Init()
{
TestClass( IDeepStorageUnit.class );
}
@Override
public void PostInit()
{
AEApi.instance().registries().externalStorage().addExternalStorageInterface( new MFRDSUHandler() );
}
}