for (int z = minZ; z <= maxZ; ++z) {
if (worldObj.getBlock(x, y, z) instanceof ILaserTargetBlock) {
TileEntity tile = worldObj.getTileEntity(x, y, z);
if (tile instanceof ILaserTarget) {
ILaserTarget table = (ILaserTarget) tile;
if (table.requiresLaserEnergy()) {
targets.add(table);
}
}
}
}