Program: 30747
Project: 30747
Buggy source:
@Override public boolean renderInWorld(AEBaseBlock imb,IBlockAccess world,int x,int y,int z,RenderBlocks renderer){
  TileChest sp=imb.getTileEntity(world,x,y,z);
  renderer.setRenderBounds(0,0,0,1,1,1);
  ForgeDirection up=sp.getUp();
  ForgeDirection forward=sp.getForward();
  ForgeDirection west=Platform.crossProduct(forward,up);
  preRenderInWorld(imb,world,x,y,z,renderer);
  int stat=sp.getCellStatus(0);
  boolean result=renderer.renderStandardBlock(imb,x,y,z);
  selectFace(renderer,west,up,forward,5,16 - 5,9,12);
  int offsetU=-4;
  int offsetV=8;
  if (stat == 0)   offsetV=3;
  int b=world.getLightBrightnessForSkyBlocks(x + forward.offsetX,y + forward.offsetY,z + forward.offsetZ,0);
  Tessellator.instance.setBrightness(b);
  Tessellator.instance.setColorOpaque_I(0xffffff);
  FlipableIcon fico=new FlipableIcon(new OffsetIcon(ExtraTextures.MEStorageCellTextures.getIcon(),offsetU,offsetV));
  if (forward == ForgeDirection.EAST && (up == ForgeDirection.NORTH || up == ForgeDirection.SOUTH))   fico.setFlip(true,false);
 else   if (forward == ForgeDirection.NORTH && up == ForgeDirection.EAST)   fico.setFlip(false,true);
 else   if (forward == ForgeDirection.NORTH && up == ForgeDirection.WEST)   fico.setFlip(true,false);
 else   if (forward == ForgeDirection.DOWN && up == ForgeDirection.EAST)   fico.setFlip(false,true);
 else   if (forward == ForgeDirection.DOWN)   fico.setFlip(true,false);
 else   if (forward == ForgeDirection.EAST && up == ForgeDirection.UP)   fico.setFlip(true,false);
 else   if (forward == ForgeDirection.NORTH && up == ForgeDirection.UP)   fico.setFlip(true,false);
  renderFace(x,y,z,imb,fico,renderer,forward);
  if (stat != 0) {
    b=0;
    if (sp.isPowered()) {
      b=15 << 20 | 15 << 4;
    }
    Tessellator.instance.setBrightness(b);
    if (stat == 1)     Tessellator.instance.setColorOpaque_I(0x00ff00);
    if (stat == 2)     Tessellator.instance.setColorOpaque_I(0xffaa00);
    if (stat == 3)     Tessellator.instance.setColorOpaque_I(0xff0000);
    selectFace(renderer,west,up,forward,9,10,11,12);
    renderFace(x,y,z,imb,ExtraTextures.White.getIcon(),renderer,forward);
  }
  b=world.getLightBrightnessForSkyBlocks(x + up.offsetX,y + up.offsetY,z + up.offsetZ,0);
  if (sp.isPowered()) {
    b=15 << 20 | 15 << 4;
  }
  Tessellator.instance.setBrightness(b);
  Tessellator.instance.setColorOpaque_I(0xffffff);
  renderer.setRenderBounds(0,0,0,1,1,1);
  ICellHandler ch=AEApi.instance().registries().cell().getHander(sp.getStorageType());
  IIcon ico=ch == null ? null : ch.getTopTexture();
  renderFace(x,y,z,imb,ico == null ? ExtraTextures.MEChest.getIcon() : ico,renderer,up);
  renderer.overrideBlockTexture=null;
  postRenderInWorld(renderer);
  return result;
}

Fixed version (ground truth):
@Override public boolean renderInWorld(AEBaseBlock imb,IBlockAccess world,int x,int y,int z,RenderBlocks renderer){
  TileChest sp=imb.getTileEntity(world,x,y,z);
  renderer.setRenderBounds(0,0,0,1,1,1);
  ForgeDirection up=sp.getUp();
  ForgeDirection forward=sp.getForward();
  ForgeDirection west=Platform.crossProduct(forward,up);
  preRenderInWorld(imb,world,x,y,z,renderer);
  int stat=sp.getCellStatus(0);
  boolean result=renderer.renderStandardBlock(imb,x,y,z);
  selectFace(renderer,west,up,forward,5,16 - 5,9,12);
  int offsetU=-4;
  int offsetV=8;
  if (stat == 0)   offsetV=3;
  int b=world.getLightBrightnessForSkyBlocks(x + forward.offsetX,y + forward.offsetY,z + forward.offsetZ,0);
  Tessellator.instance.setBrightness(b);
  Tessellator.instance.setColorOpaque_I(0xffffff);
  FlipableIcon fico=new FlipableIcon(new OffsetIcon(ExtraTextures.MEStorageCellTextures.getIcon(),offsetU,offsetV));
  if (forward == ForgeDirection.EAST && (up == ForgeDirection.NORTH || up == ForgeDirection.SOUTH))   fico.setFlip(true,false);
 else   if (forward == ForgeDirection.NORTH && up == ForgeDirection.EAST)   fico.setFlip(false,true);
 else   if (forward == ForgeDirection.NORTH && up == ForgeDirection.WEST)   fico.setFlip(true,false);
 else   if (forward == ForgeDirection.DOWN && up == ForgeDirection.EAST)   fico.setFlip(false,true);
 else   if (forward == ForgeDirection.DOWN)   fico.setFlip(true,false);
 else   if (forward == ForgeDirection.EAST && up == ForgeDirection.UP)   fico.setFlip(true,false);
 else   if (forward == ForgeDirection.NORTH && up == ForgeDirection.UP)   fico.setFlip(true,false);
  renderFace(x,y,z,imb,fico,renderer,forward);
  if (stat != 0) {
    b=0;
    if (sp.isPowered()) {
      b=15 << 20 | 15 << 4;
    }
    Tessellator.instance.setBrightness(b);
    if (stat == 1)     Tessellator.instance.setColorOpaque_I(0x00ff00);
    if (stat == 2)     Tessellator.instance.setColorOpaque_I(0xffaa00);
    if (stat == 3)     Tessellator.instance.setColorOpaque_I(0xff0000);
    selectFace(renderer,west,up,forward,9,10,11,12);
    renderFace(x,y,z,imb,ExtraTextures.White.getIcon(),renderer,forward);
  }
  b=world.getLightBrightnessForSkyBlocks(x + up.offsetX,y + up.offsetY,z + up.offsetZ,0);
  if (sp.isPowered()) {
    b=15 << 20 | 15 << 4;
  }
  Tessellator.instance.setBrightness(b);
  Tessellator.instance.setColorOpaque_I(0xffffff);
  renderer.setRenderBounds(0,0,0,1,1,1);
  ICellHandler ch=AEApi.instance().registries().cell().getHandler(sp.getStorageType());
  IIcon ico=ch == null ? null : ch.getTopTexture();
  renderFace(x,y,z,imb,ico == null ? ExtraTextures.MEChest.getIcon() : ico,renderer,up);
  renderer.overrideBlockTexture=null;
  postRenderInWorld(renderer);
  return result;
}