diff --git a/electrical/src/main/java/resonantinduction/electrical/generator/thermopile/BlockThermopile.java b/electrical/src/main/java/resonantinduction/electrical/generator/thermopile/BlockThermopile.java index 78ab86a4..f2f12bf9 100644 --- a/electrical/src/main/java/resonantinduction/electrical/generator/thermopile/BlockThermopile.java +++ b/electrical/src/main/java/resonantinduction/electrical/generator/thermopile/BlockThermopile.java @@ -1,6 +1,10 @@ package resonantinduction.electrical.generator.thermopile; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.Icon; import net.minecraft.world.World; import resonantinduction.core.Reference; import universalelectricity.api.UniversalElectricity; @@ -8,11 +12,33 @@ import calclavia.lib.prefab.block.BlockTile; public class BlockThermopile extends BlockTile { + public Icon topIcon; + public BlockThermopile(int id) { super(id, UniversalElectricity.machine); } + @SideOnly(Side.CLIENT) + @Override + public void registerIcons(IconRegister iconReg) + { + topIcon = iconReg.registerIcon(Reference.PREFIX + "thermopile_top"); + super.registerIcons(iconReg); + } + + @Override + @SideOnly(Side.CLIENT) + public Icon getIcon(int side, int meta) + { + if (side == 1) + { + return topIcon; + } + + return blockIcon; + } + @Override public TileEntity createNewTileEntity(World world) { diff --git a/src/main/resources/assets/resonantinduction/textures/blocks/solarPanel_top.png b/src/main/resources/assets/resonantinduction/textures/blocks/solarPanel_top.png index 3cf5bc32..bb6fa7c4 100644 Binary files a/src/main/resources/assets/resonantinduction/textures/blocks/solarPanel_top.png and b/src/main/resources/assets/resonantinduction/textures/blocks/solarPanel_top.png differ diff --git a/src/main/resources/assets/resonantinduction/textures/blocks/thermopile.png b/src/main/resources/assets/resonantinduction/textures/blocks/thermopile.png index a40786d4..eb381e1d 100644 Binary files a/src/main/resources/assets/resonantinduction/textures/blocks/thermopile.png and b/src/main/resources/assets/resonantinduction/textures/blocks/thermopile.png differ diff --git a/src/main/resources/assets/resonantinduction/textures/blocks/thermopile_top.png b/src/main/resources/assets/resonantinduction/textures/blocks/thermopile_top.png new file mode 100644 index 00000000..d6b492e1 Binary files /dev/null and b/src/main/resources/assets/resonantinduction/textures/blocks/thermopile_top.png differ