public static int renderPass = -1;
public void renderPipe(RenderBlocks renderblocks, IBlockAccess iblockaccess, LogisticsBlockGenericPipe block, LogisticsTileGenericPipe pipe, int x, int y, int z) {
if(pipe.pipe instanceof PipeBlockRequestTable) {
PipeRenderState state = pipe.renderState;
IIconProvider icons = pipe.getPipeIcons();
if (icons == null) return;
state.currentTexture = icons.getIcon(state.textureMatrix.getTextureIndex(ForgeDirection.UNKNOWN));
block.setRenderAllSides();
block.setBlockBounds(0, 0, 0, 1, 1, 1);
renderblocks.setRenderBoundsFromBlock(block);
renderblocks.renderStandardBlock(block, x, y, z);
return;
}
PipeRenderState state = pipe.renderState;
IIconProvider icons = pipe.getPipeIcons();
if (icons == null)
return;