Use the striped pipe as the breaked block texture, for now

This commit is contained in:
Krapht 2013-03-28 21:40:21 +01:00
parent 50030fd815
commit dbc76521a2
3 changed files with 11 additions and 2 deletions

View file

@ -902,4 +902,10 @@ public class BlockGenericPipe extends BlockContainer {
}
}
}
@Override
@SideOnly(Side.CLIENT)
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2) {
return BuildCraftTransport.instance.pipeIconProvider.getIcon(PipeIconProvider.Stripes);
}
}

View file

@ -43,7 +43,9 @@ public class PipeIconProvider implements IIconProvider {
public static final int Power_Normal = 31;
public static final int Power_Overload = 32;
public static final int MAX = 33;
public static final int Stripes = 33;
public static final int MAX = 34;
private boolean registered = false;
@ -107,6 +109,7 @@ public class PipeIconProvider implements IIconProvider {
_icons[PipeIconProvider.Power_Normal] = iconRegister.registerIcon("buildcraft:texture_cyan");
_icons[PipeIconProvider.Power_Overload] = iconRegister.registerIcon("buildcraft:texture_red_dark");
_icons[PipeIconProvider.Stripes] = iconRegister.registerIcon("buildcraft:pipeStripes");
}
}