Applied-Energistics-2-tiler.../client/texture/TmpFlipableIcon.java
2014-05-07 20:54:28 -05:00

26 lines
501 B
Java

package appeng.client.texture;
import net.minecraft.init.Blocks;
import net.minecraft.util.IIcon;
public class TmpFlipableIcon extends FlipableIcon
{
private static final IIcon nullIcon = new MissingIcon( Blocks.diamond_block );
public TmpFlipableIcon() {
super( nullIcon );
}
public void setOriginal(IIcon i)
{
while (i instanceof FlipableIcon)
i = ((FlipableIcon) i).getOriginal();
if ( i == null )
original = nullIcon;
else
original = i;
}
}