@Override
  public boolean renderWorldBlock(
      IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
    int metadata = world.getBlockMetadata(x, y, z);
    if (renderPass == 0
        || metadata == BlockMetalDevices2.META_floodlight
        || metadata == BlockMetalDevices2.META_chargingStation)
      if (metadata == BlockMetalDevices2.META_breakerSwitch) {
        TileEntityBreakerSwitch tile = (TileEntityBreakerSwitch) world.getTileEntity(x, y, z);
        ClientUtils.handleStaticTileRenderer(tile);
        ClientUtils.renderAttachedConnections(tile);
        return true;
      } else if (metadata == BlockMetalDevices2.META_skycrateDispenser) {
        renderer.setRenderBounds(0, 0, 0, 1, 1, 1);
        return renderer.renderStandardBlock(block, x, y, z);
      } else if (metadata == BlockMetalDevices2.META_energyMeter) {
        TileEntityEnergyMeter tile = (TileEntityEnergyMeter) world.getTileEntity(x, y, z);
        if (!tile.dummy) {
          ClientUtils.handleStaticTileRenderer(tile);
          ClientUtils.renderAttachedConnections(tile);
          return true;
        }
      } else if (metadata == BlockMetalDevices2.META_electricLantern) {
        TileEntityElectricLantern tile = (TileEntityElectricLantern) world.getTileEntity(x, y, z);
        ClientUtils.handleStaticTileRenderer(tile);
        ClientUtils.renderAttachedConnections(tile);
        return true;
      } else if (metadata == BlockMetalDevices2.META_floodlight) {
        TileEntityFloodlight tile = (TileEntityFloodlight) world.getTileEntity(x, y, z);
        ClientUtils.handleStaticTileRenderer(tile);
        ClientUtils.renderAttachedConnections(tile);
        return true;
      } else if (metadata == BlockMetalDevices2.META_fluidPipe) {
        TileEntityFluidPipe tile = (TileEntityFluidPipe) world.getTileEntity(x, y, z);
        ClientUtils.handleStaticTileRenderer(tile);
        if (tile.scaffoldCovering != null) {
          Block cover = Block.getBlockFromItem(tile.scaffoldCovering.getItem());
          float f = .015625f;
          AxisAlignedBB aabb =
              AxisAlignedBB.getBoundingBox(1 - f, 1 - f, 1 - f, f, f, f)
                  .getOffsetBoundingBox(x, y, z);
          ClientUtils.drawWorldBlock(world, cover, x, y, z, tile.scaffoldCovering.getItemDamage());
          ClientUtils.drawWorldBlock(
              world, cover, x, y, z, tile.scaffoldCovering.getItemDamage(), aabb);
        }
        return true;
      } else if (metadata == BlockMetalDevices2.META_fluidPump) {
        TileEntityFluidPump tile = (TileEntityFluidPump) world.getTileEntity(x, y, z);
        if (!tile.dummy) {
          ClientUtils.handleStaticTileRenderer(tile);
          renderer.renderFaceXPos(
              IEContent.blockMetalDevice2,
              x,
              y,
              z,
              IEContent.blockMetalDevice2.getIcon(
                  tile.sideConfig[5], BlockMetalDevices2.META_fluidPump));
          renderer.renderFaceXNeg(
              IEContent.blockMetalDevice2,
              x,
              y,
              z,
              IEContent.blockMetalDevice2.getIcon(
                  tile.sideConfig[4], BlockMetalDevices2.META_fluidPump));
          renderer.renderFaceZPos(
              IEContent.blockMetalDevice2,
              x,
              y,
              z,
              IEContent.blockMetalDevice2.getIcon(
                  tile.sideConfig[3], BlockMetalDevices2.META_fluidPump));
          renderer.renderFaceZNeg(
              IEContent.blockMetalDevice2,
              x,
              y,
              z,
              IEContent.blockMetalDevice2.getIcon(
                  tile.sideConfig[2], BlockMetalDevices2.META_fluidPump));
          renderer.renderFaceYNeg(
              IEContent.blockMetalDevice2,
              x,
              y,
              z,
              IEContent.blockMetalDevice2.getIcon(
                  3 + tile.sideConfig[0], BlockMetalDevices2.META_fluidPump));
        }

        return true;
      } else if (metadata == BlockMetalDevices2.META_barrel) {
        renderer.setRenderBoundsFromBlock(block);
        return renderer.renderStandardBlock(block, x, y, z);
      } else if (metadata == BlockMetalDevices2.META_capacitorCreative) {
        renderer.setRenderBounds(0, 0, 0, 1, 1, 1);
        return renderer.renderStandardBlock(block, x, y, z);
      } else if (metadata == BlockMetalDevices2.META_redstoneBreaker) {
        TileEntityRedstoneBreaker tile = (TileEntityRedstoneBreaker) world.getTileEntity(x, y, z);
        ClientUtils.handleStaticTileRenderer(tile);
        ClientUtils.renderAttachedConnections(tile);
        return true;
      } else if (metadata == BlockMetalDevices2.META_chargingStation) {
        TileEntityChargingStation tile = (TileEntityChargingStation) world.getTileEntity(x, y, z);
        ClientUtils.handleStaticTileRenderer(tile);
        return true;
      }
    return false;
  }