45 lines
905 B
Java
45 lines
905 B
Java
package appeng.integration.modules;
|
|
|
|
import net.mcft.copy.betterstorage.api.ICrateStorage;
|
|
import net.minecraftforge.common.ForgeDirection;
|
|
import appeng.integration.IIntegrationModule;
|
|
import appeng.integration.abstraction.IBS;
|
|
import appeng.integration.modules.helpers.BSCrateStorageAdaptor;
|
|
import appeng.util.InventoryAdaptor;
|
|
|
|
public class BS implements IIntegrationModule, IBS
|
|
{
|
|
|
|
public static BS instance;
|
|
|
|
@Override
|
|
public boolean isStorageCrate(Object te)
|
|
{
|
|
return te instanceof ICrateStorage;
|
|
}
|
|
|
|
@Override
|
|
public InventoryAdaptor getAdaptor(Object te, ForgeDirection d)
|
|
{
|
|
if ( te instanceof ICrateStorage )
|
|
{
|
|
return new BSCrateStorageAdaptor( te, d );
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public void Init()
|
|
{
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
|
|
@Override
|
|
public void PostInit()
|
|
{
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
|
|
}
|