2013-12-27 23:59:59 +01:00
|
|
|
package appeng.block.networking;
|
|
|
|
|
|
|
|
import java.util.EnumSet;
|
|
|
|
|
2014-02-09 02:34:52 +01:00
|
|
|
import net.minecraft.util.IIcon;
|
2014-05-26 03:58:44 +02:00
|
|
|
import appeng.client.texture.ExtraBlockTextures;
|
2013-12-27 23:59:59 +01:00
|
|
|
import appeng.core.features.AEFeature;
|
|
|
|
import appeng.tile.networking.TileDenseEnergyCell;
|
|
|
|
|
|
|
|
public class BlockDenseEnergyCell extends BlockEnergyCell
|
|
|
|
{
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double getMaxPower()
|
|
|
|
{
|
|
|
|
return 200000.0 * 8.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public BlockDenseEnergyCell() {
|
|
|
|
super( BlockDenseEnergyCell.class );
|
|
|
|
setfeature( EnumSet.of( AEFeature.DenseEnergyCells ) );
|
|
|
|
setTileEntiy( TileDenseEnergyCell.class );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2014-02-09 02:34:52 +01:00
|
|
|
public IIcon getIcon(int direction, int metadata)
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
switch (metadata)
|
|
|
|
{
|
|
|
|
case 0:
|
2014-05-26 03:58:44 +02:00
|
|
|
return ExtraBlockTextures.MEDenseEnergyCell0.getIcon();
|
2013-12-27 23:59:59 +01:00
|
|
|
case 1:
|
2014-05-26 03:58:44 +02:00
|
|
|
return ExtraBlockTextures.MEDenseEnergyCell1.getIcon();
|
2013-12-27 23:59:59 +01:00
|
|
|
case 2:
|
2014-05-26 03:58:44 +02:00
|
|
|
return ExtraBlockTextures.MEDenseEnergyCell2.getIcon();
|
2013-12-27 23:59:59 +01:00
|
|
|
case 3:
|
2014-05-26 03:58:44 +02:00
|
|
|
return ExtraBlockTextures.MEDenseEnergyCell3.getIcon();
|
2013-12-27 23:59:59 +01:00
|
|
|
case 4:
|
2014-05-26 03:58:44 +02:00
|
|
|
return ExtraBlockTextures.MEDenseEnergyCell4.getIcon();
|
2013-12-27 23:59:59 +01:00
|
|
|
case 5:
|
2014-05-26 03:58:44 +02:00
|
|
|
return ExtraBlockTextures.MEDenseEnergyCell5.getIcon();
|
2013-12-27 23:59:59 +01:00
|
|
|
case 6:
|
2014-05-26 03:58:44 +02:00
|
|
|
return ExtraBlockTextures.MEDenseEnergyCell6.getIcon();
|
2013-12-27 23:59:59 +01:00
|
|
|
case 7:
|
2014-05-26 03:58:44 +02:00
|
|
|
return ExtraBlockTextures.MEDenseEnergyCell7.getIcon();
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
return super.getIcon( direction, metadata );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|