Initial 1.7.10 IC2 API Update.

This commit is contained in:
AlgorithmX2
2014-06-28 17:32:40 -05:00
parent 1cbda9e7ae
commit 6718fae629
5 changed files with 89 additions and 40 deletions
+17
View File
@@ -147,4 +147,21 @@ public class LayerIEnergySource extends LayerBase implements IEnergySource
}
}
@Override
public int getSourceTier()
{
// this is a flawed implementation, that requires a change to the IC2 API.
for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS)
{
IPart part = getPart( dir );
if ( part instanceof IEnergySource )
{
return ((IEnergySource) part).getSourceTier();
}
}
return 0;
}
}