Fixed solar panel and thermopile texture

This commit is contained in:
Calclavia 2014-02-25 22:59:57 +08:00
parent 202c400de8
commit 47b845a67a
4 changed files with 26 additions and 0 deletions

View file

@ -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)
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB