IC2 Api Update.

This commit is contained in:
AlgorithmX2
2014-06-28 20:26:43 -05:00
parent 8dc2c04afd
commit 96b5115538
5 changed files with 83 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;
}
}