Applied-Energistics-2-tiler.../block/networking/BlockDenseEnergyCell.java

52 lines
1.2 KiB
Java
Raw Normal View History

package appeng.block.networking;
import java.util.EnumSet;
2014-02-09 02:34:52 +01:00
import net.minecraft.util.IIcon;
import appeng.client.texture.ExtraTextures;
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)
{
switch (metadata)
{
case 0:
return ExtraTextures.MEDenseEnergyCell0.getIcon();
case 1:
return ExtraTextures.MEDenseEnergyCell1.getIcon();
case 2:
return ExtraTextures.MEDenseEnergyCell2.getIcon();
case 3:
return ExtraTextures.MEDenseEnergyCell3.getIcon();
case 4:
return ExtraTextures.MEDenseEnergyCell4.getIcon();
case 5:
return ExtraTextures.MEDenseEnergyCell5.getIcon();
case 6:
return ExtraTextures.MEDenseEnergyCell6.getIcon();
case 7:
return ExtraTextures.MEDenseEnergyCell7.getIcon();
}
return super.getIcon( direction, metadata );
}
}